GDB Commands Flashcards
(13 cards)
1
Q
Show the values stored in the registers
A
info registers
2
Q
Display contents of a single register
A
display /x $(register)
3
Q
Get assembly instructions
A
disassemble (location)
4
Q
Get GDB to show all registers, including FPU etc.
A
info all-registers
5
Q
Show how memory is laid out
A
info proc mappings
6
Q
Read the source code
A
list (line number)
7
Q
List all of the functions
A
info functions
8
Q
List the source code files
A
info sourcea
9
Q
Get global and static variables
A
info variables
10
Q
List local variables
A
info scope (function)
11
Q
Add a symbol file
A
symbol-file (file)
12
Q
Modify the value at a memory location
A
set {char} (memory location) (value)
13
Q
Add conditional breakpoint
A
Set breakpoint then:
condition (number) (expression)