Gdb
Jump to navigation
Jump to search
gdb (GNU Debugger) is a software debugger. It can be used to diagnose software runtime errors, such as segmentation faults, or other errors that are not easily detectable or diagnosable at runtime. It can perform typical debugger functions such as breakpoints, watching, stepping, and so on.
As with most UNIX style programs gdb has a command line interface. ddd is a graphical wrapper for gdb, as well as some other debuggers.
Related Commands
These all relate to running commands in an altered context.
- chroot - Confine the program to "jail".
- env - Change variables.
- nice - Change priority.
- nohup - Protect from hangups (modem) or network outages.
- stdbuf - Change buffering of standard I/O filestreams.
- su - Change user
- timeout - Limit the time.
- script - Capture all program output
- valgrind - Validate program behavior
- strace - Create a log of system calls.
See also
- Debuggers for a list of debuggers.
- gdb Homepage
- gdb Tutorial