Skip to content

Debugging the internals

Neil Kolban edited this page Dec 23, 2015 · 2 revisions

The code should be compiled with the -g flag to include the debugging symbols. If we are performing a cross compilation, it is likely that the source will not be present on the Pi under test in which case we might want to use remote debugging. To achieve this, run the Pi Arduino app using gdbserver:

$ sudo gdbserver localhost:10000 ./test1

On the Linux PC on which the cross compiles are being tested, run:

$ ddd --debugger /usr/local/dev/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gdb
 ./test1

In the ddd command window enter:

target remote raspi:10000
Clone this wiki locally