本文介绍了如何从.gdbinit强制断点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我在
从文档:
When I set a breakpoint in my .gdbinit using:
b foobar
I get this:
Function "foobar" not defined. Make breakpoint pending on future shared library load? (y or [n]) [answered N; input not from terminal]
Now the first line is understandable, because the function resides in a shared library. However, this defaults to no.
How do I force it to set the breakpoint in such a non-interactive scenario?
解决方案
This can be done using set breakpoint pending on. From the Setting Breakpoints documentation:
这篇关于如何从.gdbinit强制断点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!