GDB调试问题No source file named file.c. Make breakpoint pending on future shared library load? (y or [n]
来源:互联网 发布:刺客信条枭雄 知乎 编辑:程序博客网 时间:2024/06/06 02:38
gdb多文件调试加断点
我在调试时要在一个文件中加断点,但是提示说:
输入break file.c:30
No source file named file.c.
Make breakpoint pending on future shared library load? (y or [n]) n
百度了好久没有结果------解决方案--------------------
应该是你在编译的时候,没有加-g的选项,导致没有产生调试符号。
------解决方案--------------------
遇到此类问题的解决方案如下:
第一:确定你是否在该目录下设置断点,根据你的错误提示,你已经在正确的目录下了
第二:修改你的配置文件,具体如下:
第三:修改完之后,一定要重新编译,而且编译步骤不能少,如下,时间稍长,需耐心:
./configure
make clean
make depend
make
sudo make install
第四:若以上三步还不好使,重新按装GDB,重复上述步骤
------解决方案--------------------
编译时加-g选项来保留调试信息才能进行调试
我在调试时要在一个文件中加断点,但是提示说:
输入break file.c:30
No source file named file.c.
Make breakpoint pending on future shared library load? (y or [n]) n
百度了好久没有结果------解决方案--------------------
应该是你在编译的时候,没有加-g的选项,导致没有产生调试符号。
------解决方案--------------------
遇到此类问题的解决方案如下:
第一:确定你是否在该目录下设置断点,根据你的错误提示,你已经在正确的目录下了
第二:修改你的配置文件,具体如下:
第三:修改完之后,一定要重新编译,而且编译步骤不能少,如下,时间稍长,需耐心:
./configure
make clean
make depend
make
sudo make install
第四:若以上三步还不好使,重新按装GDB,重复上述步骤
------解决方案--------------------
编译时加-g选项来保留调试信息才能进行调试
0 0
- GDB调试问题No source file named file.c. Make breakpoint pending on future shared library load? (y or [n]
- Eclipse - CDT使用GDB调试C++的问题-无源文件命名(No source file named)
- (gdb)中b aodv.cc:112时错误:no source file named aodv.cc
- $ ns Error: Cannot open shared library: No such file or directory
- TLD 算法问题:libopencv_calib3d.so.2.2: cannot open shared object file: No such file or directory
- Ubuntu 下 libmpfr.so.1: cannot open shared object file: No such file or directory 问题
- libstdc++.so.6: cannot open shared object file: No such file or directory的问题
- 解决 libstdc++.so.5: cannot open shared object file: No such file or directory 问题
- (转)解决Linux:cannot open shared object file: No such file or directory 类似问题
- android 开发环境 helloworld出现问题。cannot open shared object file: No such file or directory
- Failed to load libGL.so error libGL.so: cannot open shared object file: No such file or directory
- Failed to load libGL.so error libGL.so: cannot open shared object file: No such file or directory
- 解决eclipse调试c++程序出现“No source file named” error
- cannot open shared object file: No such file or directory
- cannot open shared object file: No such file or directory
- cannot open shared object file: No such file or directory
- cannot open shared object file: No such file or directory
- cannot open shared object file: No such file or directory
- DAO 编程
- 关于某社交app的安全分析,简单介绍下app防止反编译的方法
- 2013级C++第4周(春)项目——再和对象找感觉【项目4扩展4(选做)】
- 重温数据结构:二叉查找树的java实现
- AAM(Active Appearance Model)算法介绍
- GDB调试问题No source file named file.c. Make breakpoint pending on future shared library load? (y or [n]
- Object.prototype.toString.call() 进行类型判断
- Java Static静态关键字理解
- win下oracle数据库的卸载
- sum(cast req_num as float) 用发
- gradle -version ERROR:JAVA_HOME is set to an invalid directory
- window下jconsole监控weblogic及远程不能访问的问题
- cocos2d-x中讲解TileMap地图编辑器的高级用法(对象层部分)
- openCV