i
Table of Contents
Summary of
gdb
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Free software
................................................
1Free Software Needs Free Documentation
......................
gdb
..........................................
1 A Sample
gdb
Session
. . . . . . . . . . . . . . . . . . . . . .
gdb
. . . . . . . . . . . . . . . .
2.1 Invoking
gdb
..........................................
.................................
...............................
gdb
..........................................
........................................
........................................
3
gdb
Commands
. . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1 Command syntax
......................................
..................................
...........................................
4 Running Programs Under
gdb
. . . . . . . . . . . . .
4.1 Compiling for debugging
................................
234.2 Starting your program
..................................
244.3 Your program’s arguments
..............................
254.4 Your program’s environment
............................
254.5 Your program’s working directory
.......................
264.6 Your program’s input and output
........................
264.7 Debugging an already-running process
...................
274.8 Killing the child process
................................
284.9 Debugging programs with multiple threads
...............
284.10 Debugging programs with multiple processes
............
5 Stopping and Continuing
. . . . . . . . . . . . . . . . . .
5.1 Breakpoints, watchpoints, and catchpoints
...............
335.1.1 Setting breakpoints
............................
345.1.2 Setting watchpoints
............................
365.1.3 Setting catchpoints
............................
385.1.4 Deleting breakpoints
...........................
405.1.5 Disabling breakpoints
..........................
...............................
415.1.7 Breakpoint command lists
......................
Leave a Comment