The purpose of a debugger such as GDB is to allow you to see what is going on “inside” another program while it executes—or what another program was doing at the moment it crashed.
- A sample GDB Session
- Getting In and Out of GDB
- GDB Commands
-
Running Programs Under GDB
- Compiling for Debugging
- Starting your Program
- Your Programs Arguemnts
- Your Programs Environment
- Your Programs Working Directory
- Your Programs Input & Output
- Debugging an Already Running Process
- Killing the Child Process
- Debugging Multiple Inferiors & Programs
- Debugging programs with multiple threads
- Debugging forks
- Setting a Bookmark to Return to Later
-
Stopping and Continuing
-
Breakpoints, Watchpoints, and Catchpoints
- Setting Breakpoints
- Setting Watchpoints
- Setting Catchpoints
- Deleting Breakpoints
- Disabling Breakpoints
- Break Conditions
- Breakpoint Commands
- Dynamic Printf
- Saving Breakpoints
- Static Probe Points
- Errors in Breakpoint
- Breakpoint-related Warning
- Continuing and Stepping
- Skipping Over Functions and Files
- Signals
- Stopping and Starting Multi-Thread Programs
-
Breakpoints, Watchpoints, and Catchpoints
- Running Programs Backward
- Recording Inferior's Execution and Replaying It
-
Examining the Stack
- Stack Frames
- Backtrace
- Selecting a Frame
- Information about a Frame
- Applying a Command to Several Frames
- Management of Frame Filters
- Examining Source Files
-
Examining Data
- Expressions
- Ambiguous Expressions
- Program Variables
- Artificial Arrays
- Output Formats
- Examining Memory
- Automatic Display
- Print Settings
- Pretty Printing
- Value History
- Convenience Variables
- Convenience Functions
- Register
- Floating Point Hardware
- Vector Unit
- OS Auxilary Information
- Memory Region Attributes
- Copy Between Memory and a File
- Core Files
- Character Sets
- Searching Memory
- Search Memory
- Debugging Optimized Code
- C Preprocessor Macros
- Tracepoints
- Debugging Programs That Use Overlays
- Using GDB with Different Languages
- Examining the Symbol Table
- Altering Execution
-
GDB Files
- Files
- File caching
- Separate Debug File
- MiniDebugInfo
- Index Files
- Symbol Errors
- Data Files
- Specifiying a Debugging target
- Debugging Remote Programs
- Configuration-Specific Information
- Controlling GDB
- Extending GDB
- Command Interpreters
-
GDB TUI
- Overview
- Keys
- Single Key Mode
- Commands
- Configurations