• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
 
Debugging with
gdb
The
gnu
Source-Level DebuggerNinth Edition, for
gdb
version 6.0
Richard Stallman, Roland Pesch, Stan Shebs, et al.
 
(Send bugs and comments on
gdb
to bug-gdb@gnu.org.)
Debugging with 
gdb
TEXinfo 2003-02-03.16Copyrightc
1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,2002, 2003 Free Software Foundation, Inc.Published by the Free Software Foundation59 Temple Place - Suite 330,Boston, MA 02111-1307 USAISBN 1-882114-77-9Permission is granted to copy, distribute and/or modify this document under the termsof the GNU Free Documentation License, Version 1.1 or any later version published bythe Free Software Foundation; with the Invariant Sections being “Free Software” and “FreeSoftware Needs Free Documentation”, with the Front-Cover Texts being “A GNU Manual,”and with the Back-Cover Texts as in (a) below.(a) The Free Software Foundation’s Back-Cover Text is: “You have freedom to copy andmodify this GNU Manual, like GNU software. Copies published by the Free SoftwareFoundation raise funds for GNU development.”
 
i
Table of Contents
Summary of 
gdb
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
Free software
................................................
1Free Software Needs Free Documentation
......................
1Contributors to
gdb
..........................................
3
1 A Sample
gdb
Session
. . . . . . . . . . . . . . . . . . . . . .
72 Getting In and Out o
gdb
. . . . . . . . . . . . . . . .
2.1 Invoking
gdb
..........................................
112.1.1 Choosing files
.................................
112.1.2 Choosing modes
...............................
132.2 Quitting
gdb
..........................................
152.3 Shell commands
........................................
152.4 Logging output
........................................
3
gdb
Commands
. . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1 Command syntax
......................................
173.2 Command completion
..................................
173.3 Getting help
...........................................
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
..........................
405.1.6 Break conditions
...............................
415.1.7 Breakpoint command lists
......................
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...