A complete suite of GNU software tools including C, C++, Fortran, Java Cross Compilers, GDB/Insight Debugger Simulator, and additional hosted utilities for embedded ARM7, ARM9, and XScale CPU applications development.

2/11/2004

Tool Building, Debugger & CPU Simulator: GDB/Insight 6.0

posted by Michael Mitchell at 2/11/2004 12:10:00 PM

GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it executes -- or what another program was doing at the moment it crashed. GDB can do four main kinds of things (plus other things in support of these) to help you catch bugs in the act:

Start your program, specifying anything that might affect its behavior.
Make your program stop on specified conditions.
Examine what has happened, when your program has stopped.
Change things in your program, so you can experiment with correcting the effects of one bug and go on to learn about another.

The program being debugged can be written in C, C++, Pascal, Objective-C (and many other languages). Those programs might be executing on the same machine as GDB (native) or on another machine (remote). GDB can run on most popular UNIX and Microsoft Windows variants.

The following commands are issued to generate the target directory.

$ CFLAGS="-s -O3" export CFLAGS
$ PATH=/gnude/bin:$PATH export PATH
$ mkdir build-insight; cd build-insight; ../insight-6.0/configure --target=arm-elf --prefix=/gnude --disable-shared --disable-nls --disable-win32-registry --enable-interwork --enable-multilib; make all install; cd ..