GDB
GNU Debugger
Basic Commands
Quiet mode
gdb -q <binary>
Set a break point
b <functionName>
Run execution
r
Continue execution
c
Shows the current values of all CPU registers
info registers
Examine 20 memory addresses starting at rsp
x/20x $rsp
Disassemble the main function
disassemble main
disassemble function
disass <functionName>
Set Return Instruction Pointer
set $rip = <memoryAddress>
Last updated