git clone https://github.com/longld/peda.git ~/pedaecho "source ~/peda/peda.py" >> ~/.gdbinit
set disassembly-flavor intel
gdb executable_name
或gdb -q executable_name
b function_name
b *0x12345ab
r
disas function_name
n
s
c
Enter
x/s 0x123456ab
p /x (char[n])*var_addr
set $eax = 0
set {int}0x83040 = 4