Erle Robotics C++ GitBook

Erle-Brain and GDB

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 help.

[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 <>
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:
(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