GDB 中跳转到下一个分支指令
有没有办法继续执行,直到到达 GDB 中的分支指令?很像 WinDbg“ph”命令。如果没有的话,可以用Python编写脚本吗?
Is there a way to continue execution until a branching instruction is reached in GDB? Much like the WinDbg "ph" command. If not, can it be scripted in Python?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

我终于遇到了这个问题:
GDB 是否有“step-to-next-call”指令?
我能够修改那里的代码来创建我自己的“ph”命令:
我不像MIPS那样熟悉ARM,所以我不确定这是否涵盖了所有内容。最终,我将添加 x86 分支指令。
另外,
gdb.execute("context")
行在那里,因为我使用 GEF< /a>.I finally came across this question:
Does GDB have a "step-to-next-call" instruction?
I was able to modify the code there to create my own "ph" command:
I'm not as familiar with ARM as MIPS so I'm not sure this covers everything. Eventually, I'll add x86 branching instructions.
Also, that
gdb.execute("context")
line is there because I use GEF.