-
Notifications
You must be signed in to change notification settings - Fork 0
SaeHie Park edited this page Jan 17, 2017
·
5 revisions
set disassemble-next-line on
put set
inside ~/.gdbinit
file
info register
add
b umthunkstub.S:114
b dllimportcallback.h:286
enable or disable with breakpoint number
dis(able) 1
ena(ble) 1
add breakpoint at some specific address
b *0xb247dc71 // add breakpoint at 0xb247dc71
-
s
: step in -
n
: next, step over -
ni
: next assembly instruction -
si
: step in assembly instruction, likecall
- x/ni : dump n instructions, disassemble
x/20i
- x/nx : dump n hex values
x/20x
Use user defined function with multiple commands, like macro recording
(gdb) define fn
> c
> info register esp
> end
(gdb)
to use, just type the name (gdb) fn