By default you should have GDB installed in your Erle-Brain. You can start a gdb debugging session by typing
gdb and close it using the command
quitas shown below.You can always ask GDB itself for information on its commands, using the command
[email protected]:~/GDB# gdb GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "arm-linux-gnueabihf". For bug reporting instructions, please see: <http://bugs.launchpad.net/gdb-linaro/>. (gdb) (gdb) (gdb) (gdb) (gdb) quit
If you don't have it installed you can dowload it from the source here. (Dowload directly in erleboard if you have internet- connection through a wireless network card- or download it to your PC and follow the suitable steps here.)
Then from the command line do the following.Decompress the file and configure it:
[email protected]:~# tar -xzvf gdb-7.7.tar.gz [email protected]:~# cd gdb-7.7 [email protected]:~# ./configure --disable-intl ...
Compile the source:
[email protected]:~# make ...
And install it:
[email protected]:~# sudo make install ...