Contentsxi
4.7.2Installation134
4.8References and Resources134
Chapter5
Working with GNU Debugger135
5.1Introduction to GDB136
5.2Getting Started with GDB136
5.2.1Most Commonly Used gdb Commands137
5.2.2A Sample Session with gdb138
5.2.3Passing Command Line Arguments to the Program
Being Debugged141
5.3Controlling Execution144
5.3.1The step and finish Commands144
5.4Working with the Stack146
5.5Displaying Variables151
5.5.1Displaying Program Variables151
5.5.2Automatic Displaying Variables with Each Command153
5.5.3Displaying Environment Variables154
5.5.4Modifying Variables155
5.6Adding Break Points156
5.6.1Continuing from Break Point158
5.6.2Disabling Break Points159
5.6.3Enabling Break Points159
5.6.4Deleting Break Points160
5.7Debugging Optimized Code160
5.8Files and Shared Libraries163
5.9Using gdb With GNU Emacs164
5.10Debugging Running Processes165
5.11Installing GDB168
5.11.1Downloading and Building168
5.11.2Final Installation168
5.12Other Open Source Debuggers169
5.12.1The kdbg Debugger169
5.12.2The ddd Debugger172
5.12.3The xxgdb Debugger173
5.13References and Resources174
Next Page >>
<< Previous Page
Back to the Table of Contents