GNU Debugger
|
The GNU Debugger, usually called just GDB, is the standard debugger for the GNU software system. It is a portable debugger which runs on many Unix-like systems and works for many programming languages, including C, C++, and FORTRAN. Originally written by Richard Stallman in 1988, GDB is free software released under the GNU General Public License.
GDB offers extensive facilities for tracing and altering the execution of computer programs. The user can monitor and modify the values of programs' internal variables, and even call functions independently of the program's normal behavior.
The debugger does not contain its own graphical user interface, and defaults to a command-line interface. However, several front-ends have been built for it, such as DDD, GDBtk/Insight and the "GUD mode" in Emacs. These offer facilities similar to debuggers found in integrated development environments.
Some other debugging tools have been designed to work with GDB, such as memory leak detectors.
GDB target processors (as of 2003) include: Alpha, ARM, H8/300, System/370, System 390, X86 and X86-64, IA-64 "Itanium", Motorola 68000, MIPS,PA-RISC, PowerPC, SuperH, SPARC, VAX.
Lesser-known target processors supported in the standard release have included A29K, ARC, AVR, CRIS, D10V, D30V, FR-30, FR-V, Intel i960, M32R, 68HC11, Motorola 88000, MCORE, MN10200, MN10300, NS32K, Stormy16, V850, VAX, and Z8000. (Newer releases will likely not include some of these.)
References
- Richard M. Stallman, Roland Pesch, Stan Shebs, et al., Debugging with GDB (Free Software Foundation, 2002) ISBN 1882114884
- Norman Matloff, P. J. Salzman, The Art of Debugging with GDB/DDD: For Professionals and Students (No Starch Press, 2003) ISBN 159327002X
External links
- GDB homepage (http://www.gnu.org/software/gdb/gdb.html)
- Debugging with GDB (http://sources.redhat.com/gdb/current/onlinedocs/gdb.html)
- GDB Internals (http://sources.redhat.com/gdb/current/onlinedocs/gdbint.html)de:GNU Debugger