Run-test: Support using --gdb and --gdbserver with --chroot

--gdb and --gdbserver were unusable with --chroot due to --chroot
changing how dnslookup happened on device and differing symbol
directory setup.

This CL does the basic setup so that gdb can connect to the remote
program and (provided it is configured correctly) be used to debug it.

In order to get symbols one must set both the `solib-search-path` and
`solib-absolute-prefix` appropriately. See GDB documentation for more
information.

Test: ./test/run-test --gdbserver --chroot /data/local/art-test-chroot --64 001-HelloWorld
Change-Id: I598cb7654f5b8b669e1c658e25fb941c3d046666
2 files changed