使用Python Fin时,GDBScript不会继续
我使用GDB调试Linux过程。我希望GDB会破坏somefunction
等待该函数将完成gdb.execute('fin')
,然后打印完成
并继续
b SomeFunction
commands
silent
python
i = gdb.inferiors()[0]
gdb.execute('fin')
print('finish')
end
c
end
继续问题是,即使是GDB打印完成
它也不会自动继续(使用c
)
为什么?
I debug a Linux process using GDB. I want that GDB will break on SomeFunction
wait until the function will finish gdb.execute('fin')
and then print finish
and continue
b SomeFunction
commands
silent
python
i = gdb.inferiors()[0]
gdb.execute('fin')
print('finish')
end
c
end
The problem is that even GDB print finish
it doesn't continue automatically (with c
)
Why is that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论