Debugging with _GDBN__
The GNU Source-Level Debugger, on _HOST__ Systems, Edition 4.06, for _GDBN__ version _GDB_VN__, October 1992
by Richard M. Stallman and Roland H. Pesch
Summary of _GDBN__
Free Software
Contributors to GDB
New Features since GDB version 3.5
A Sample _GDBN__ Session
Getting In and Out of _GDBN__
Starting _GDBN__
Choosing Files
Choosing Modes
Leaving _GDBN__
Shell Commands
_GDBN__ Commands
Command Syntax
Command Completion
Getting Help
Running Programs Under _GDBN__
Compiling for Debugging
Starting your Program
Your Program's Arguments
Your Program's Environment
Your Program's Working Directory
Your Program's Input and Output
Debugging an Already-Running Process
Killing the Child Process
Additional Process Information
Stopping and Continuing
Breakpoints, Watchpoints, and Exceptions
Breakpoints and Watchpoints
Setting Breakpoints
Setting Watchpoints
Breakpoints and Exceptions
Deleting Breakpoints
Disabling Breakpoints
Break Conditions
Breakpoint Command Lists
Breakpoint Menus
"Cannot Insert Breakpoints"
Continuing and Stepping
Signals
Examining the Stack
Stack Frames
Backtraces
Selecting a Frame
Information About a Frame
Examining Source Files
Printing Source Lines
Searching Source Files
Specifying Source Directories
Source and Machine Code
Examining Data
Expressions
Program Variables
Artificial Arrays
Output formats
Examining Memory
Automatic Display
Print Settings
Value History
Convenience Variables
Registers
Floating Point Hardware
Using _GDBN__ with Different Languages
Switching between source languages
Setting the working language
Having _GDBN__ infer the source language
Displaying the language
Type and range Checking
An overview of type checking
An overview of Range Checking
Supported Languages
C and C++
C Language Support
C and C++ Operators
C Operators
C and C++ Constants
C Constants
C++ Expressions
C and C++ Defaults
C and C++ Type and Range Checks
_GDBN__ and C
_GDBN__ and C
_GDBN__ Features for C++
_GDBN__ Features for C++
Modula-2
Operators
Built-in Functions and Procedures
Constants
Modula-2 Defaults
Deviations from Standard Modula-2
Modula-2 Type and Range Checks
The scope operators
::
and
.
_GDBN__ and Modula-2
Examining the Symbol Table
Altering Execution
Assignment to Variables
Continuing at a Different Address
Giving your program a Signal
Returning from a Function
Calling your Program's Functions
Patching your Program
_GDBN__'s Files
Commands to Specify Files
Errors Reading Symbol Files
Specifying a Debugging Target
Active Targets
Commands for Managing Targets
Remote Debugging
Controlling _GDBN__
Prompt
Command Editing
Command History
Screen Size
Numbers
Optional Warnings and Messages
Canned Sequences of Commands
User-Defined Commands
User-Defined Command Hooks
Command Files
Commands for Controlled Output
Using _GDBN__ under GNU Emacs
Using _GDBN__ with Energize
Reporting Bugs in _GDBN__
Have You Found a Bug?
How to Report Bugs
Renamed Commands
Formatting the Documentation
Installing GDB
Compiling GDB in Another Directory
Specifying Names for Hosts and Targets
configure
Options
GNU GENERAL PUBLIC LICENSE
Preamble
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
Applying These Terms to Your New Programs
Index