GDB Flashcards
1
Q
How to View the processor registers
A
info all-registers ; info registers
2
Q
How to Set a breakpoint in code
A
break /
3
Q
Find the address of an OS function
A
info address
4
Q
Inspect a memory location
A
x
5
Q
Running gdb with args
A
gdb –args
6
Q
Running gdb with args
A
gdb –args
7
Q
clear all breakpoints
A
clear
8
Q
enable/disable breakpoint
A
enable/disable breakpoint
9
Q
kill the program
A
kill
10
Q
set new watch point
A
watch
11
Q
Examining a frame
A
frame
12
Q
show the call stack
A
backtrace
13
Q
go to the next instruction (stepping through)
A
step
14
Q
go to the next instruction diving into functions (stepping through)
A
step
15
Q
go to next instruction don’t dive into functions
A
next