当我在.gdbinit使用中设置断点时:
b foobar
Run Code Online (Sandbox Code Playgroud)
我明白了:
Function "foobar" not defined.
Make breakpoint pending on future shared library load? (y or [n]) [answered N; input not from terminal]
Run Code Online (Sandbox Code Playgroud)
现在第一行是可以理解的,因为该函数驻留在共享库中.但是,默认为no.
如何强制它在这种非交互式场景中设置断点?