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
setandshowcommandsSummary of
infocommandAlphabetical summary of GDB commands
For more information, see Debugging with GDB: The GNU Source-Level Debugger, listed in the Bibliography.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access