Chapter 17. The GDB Debugger
The GNU Debugger, GDB, is the standard debugger on GNU/Linux and BSD systems, and can be used on just about any Unix system with a C compiler and at least one of several well-known object file formats. It can be used on other kinds of systems as well. It has a very rich feature set, making it the preferred debugger of many developers the world over.
This chapter covers the following topics:
Conceptual overview
Command-line syntax
Initialization files
GDB expressions
The GDB text user interface
Group listing of GDB commands
Summary of
set
andshow
commandsSummary of
info
commandAlphabetical summary of GDB commands
For more information, see Debugging with GDB: The GNU Source-Level Debugger, listed in the Bibliography.
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.