From Technologia Incognita
Useful gdb commands
- p or p/x (for hex) - Print an expression
- x or x/32wx (for 32 Hex words) - Show memory at location
- break - set a breakpoint (include a * to start raw memory addresses)
- continue - start execution after breakpoint
- ni/si - execute the next instruction - skip calls or don't
- display - like x, but reprints the output prior to each prompt
- info reg - information about registers
- info frame - info about the current Stack frame (ebp-esp)
- bt - backtrace
- help
Breakpoints
- Breakpoint for each call:
- break *0x<address of call1>
- break *0x<address of call2>
- etc..
Display Settings
- DISPLAY SETTINGS/Basic
- display/i $pc
- display/x $edx
- display/x $ecx
- display/x $ebx
- display/x $eax
- display/32wx $ebp-92
- display/32xw $esp