使用Python Fin时,GDBScript不会继续

发布于 2025-02-03 20:38:45 字数 332 浏览 3 评论 0原文

我使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文