GDB Cheatsheet: 15-213 Fall 99
GDB Cheatsheet: 15-213 Fall 99
15-213 Fall 99
gdb
gdb <file>
gdb -h (lists command line options)
quit
Ctrl-d
Note: Ctrl-C does not exit from gdb, but halts the current
gdb command
General commands
Breakpoints
Working at breakpoints
Autodisplaying information
help
info program (current status of the program)
info functions (functions in program)
info frame (information about the current stack frame)
info variables (global and static variables)
info registers (registers and their contents)
info breakpoints (status of user-settable breakpoints)
info address SYMBOL (use for looking up addresses of functions)
M-x gdb
C-h m to see the features of GDB mode