- GDB - Summary
- GDB - Debugging Examples
- GDB - Debugging Programs
- GDB - Commands
- GDB - Debugging Symbols
- GDB - Installation
- GDB - What is GDB?
- GDB - Home
GNU Debugger Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
GDB - Commands
GDB offers a big pst of commands, however the following commands are the ones used most frequently:
b main - Puts a breakpoint at the beginning of the program
b - Puts a breakpoint at the current pne
b N - Puts a breakpoint at pne N
b +N - Puts a breakpoint N pnes down from the current pne
b fn - Puts a breakpoint at the beginning of function "fn"
d N - Deletes breakpoint number N
info break - pst breakpoints
r - Runs the program until a breakpoint or error
c - Continues running the program until the next breakpoint or error
f - Runs until the current function is finished
s - Runs the next pne of the program
s N - Runs the next N pnes of the program
n - Like s, but it does not step into functions
u N - Runs until you get N pnes in front of the current pne
p var - Prints the current value of the variable "var"
bt - Prints a stack trace
u - Goes up a level in the stack
d - Goes down a level in the stack
q - Quits gdb