GDB Flashcards
Learn gdb
1
Q
How to start program in gdb?
A
Gdb /bin/bash
2
Q
Setting breakpoint?
A
Break main or b main
3
Q
Run prog in gdb
A
Run or r
4
Q
Show register information
A
Info registers or ir
5
Q
Display each registers?
A
Display /x $eax or
display /x $ax
6
Q
Show instructions
A
Disassemble $eip
7
Q
Show instructions
A
Disassemble $eip
8
Q
Next instruction
A
Ni
9
Q
Which registers gdb does not show?
A
X87 floating point registers
10
Q
How to show x87 registers in gdb?
A
Info all-registers
11
Q
Set Intel syntax
A
Set disassembly-flavour intel