分类: C/C++
2016-05-11 21:08:50
当动态链接库尚未加载进来,对其中的符号设置断点将会提示:
Function "xxxxxx" not defined.
Make breakpoint pending on future shared library load? (y or [n])
如果在命令行手动设置可以输入“y”,继续。
但是如果在gdb脚本中设置的,会出现下面的提示:
Make breakpoint pending on future shared library load? (y or [n]) [answered N; input not from terminal]
默认回答了“n”,如果想在脚本中改为默认回答“y”,可以在脚本开头增加一行:
set breakpoint pending on