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 and show commands

  • Summary of info command

  • Alphabetical 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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.