Remote Debugging Panda with gdbserver

= Prequisites =

$ sudo apt-get install ddd gdb arm-linux-gnueabihf-gcc gdb-multiarch $ sudo apt-get install gdbserver
 * Ubuntu 11.04 or later PC
 * Panda running GLP 1.6.3 or later (Ubuntu 12.04)

= On the Panda =

Assign a host name. Mine is "panda88".

$ gdbserver :5039

= On the Host PC =

Mount the Panda's File system over ssh-ftp or some other means in GNOME Virtual File systems so that you can cd into it.

$ ls ~/.gvfs/SFTP \for \$USER\ on\ panda88/

Create a text file (gdb_cmds.txt) somewhere

set solib-absolute-prefix  set solib-search-path  target remote :5039

Then tell gdb how to launch.

$ gdb-multiarch -x  

You can also use DDD

$ ddd --debugger gdb-multiarch -x  