Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1179199
  • 博文数量: 252
  • 博客积分: 5421
  • 博客等级: 大校
  • 技术积分: 2418
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-17 12:59
文章分类

全部博文(252)

文章存档

2017年(3)

2016年(18)

2015年(31)

2014年(18)

2013年(7)

2012年(8)

2011年(12)

2010年(30)

2009年(32)

2008年(57)

2007年(36)

分类: 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
阅读(1025) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~