Makes android.py support gdb

The gdb dance is a bit cryptic. I have to do the following:
. remap local port to remote port (this really only needs to be done once)
. wait to figure out process id once started on device.
. Start gdbserver on device.
. Start gdb on local device.

Additionally the names of the shared libraries don't align, eg we end
up with html_viewer.mojo on disk but the library that comes from it is
html_viewer_library.so. For this reason I create a temp directory and
point the local gdb at it, creating links to the real files.

R=msw@chromium.org
BUG=none
TEST=none

Review URL: https://codereview.chromium.org/1152663002

Cr-Commit-Position: refs/heads/master@{#331146}


CrOS-Libchrome-Original-Commit: 2c7d24cd78f53c232d0c80585e8129f854af1f43
1 file changed
tree: af59dce8409c40e7143b7a7e2a30f809f452e15d
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/