我试图用'gdb'设置一个断点。
从here我明白了如何打破特定的功能。 但我想打破功能的特定偏移。
0xb7eecfa8 <error+184> mov eax, dword ptr [ebx - 0x40]
0xb7eecfae <error+190> sub esp, 4
0xb7eecfb1 <error+193> push dword ptr [eax]
gdb> break error+184
Function "error+184" not defined.
在0xb7eecfa8 <error+184>
有任何打破的命令吗?
(除了只输入b *0xb7eecfa8
)
在
<error+184>
有没有任何打破的命令
这两个似乎都做你想要的:
b *(&error+184)
b *(error+184)