GRAndWalkthrough1

From GNU Radio
Jump to navigation Jump to search

Debugging with Android

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

From adb - launch the executable from gdbserver:

gdbserver :5039  

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

adb forward tcp:5039 tcp:5039

Now launch gdb from the stand-alone toolchain:

/bin/arm-linux-androideabi-gdb 

Once gdb starts up, you need to tell it to connect to the remote gdbserver (through the adb port-forwarding):

target remote :5039

Since the executable is already started on the device via gdbserver, you will typically use the continue command (rather than run) at this point.