GRAndWalkthrough1

= Debugging with Android =

When debugging Android applications - you sometimes need to run gdb on an executable (e.g. a C++ application). You can use  and   on your host (from your standalone toolchain) to do this

From  - launch the executable from  :

gdbserver :5039 On your host, setup  to forward a tcp port from your localhost to   on the device:

adb forward tcp:5039 tcp:5039 Now launch  from the stand-alone toolchain:

/bin/arm-linux-androideabi-gdb Once  starts up, you need to tell it to connect to the remote   (through the adb port-forwarding):

target remote :5039 Since the executable is already started on the device via, you will typically use the   command (rather than  ) at this point.