linux 学习笔记 gdb问题解决
2009-10-29 21:28
627 查看
继续我的linux学习,今天研究的是gdb调试方法。
不过遇到了一个小问题
1、问题
在 gdb 一个已经编译好的 hello.c时,list后没有报如下错误
No symbol table is loaded. Use the "file" command.
2、解决
原来是gcc时没有打开 -g
重新编译连接程序
gcc -g hello.c -o hello
gdb hello
就ok了
不过遇到了一个小问题
1、问题
在 gdb 一个已经编译好的 hello.c时,list后没有报如下错误
No symbol table is loaded. Use the "file" command.
2、解决
原来是gcc时没有打开 -g
重新编译连接程序
gcc -g hello.c -o hello
gdb hello
就ok了
相关文章推荐
- Linux 学习笔记 (四)Ubuntu14.04 解决上网问题安装无线网卡驱动
- Linux 学习笔记 (四)Ubuntu14.04 解决上网问题安装无线网卡驱动
- linux学习笔记--常见问题解决方法
- 【Linux学习笔记八】Linux编程-编译(gcc)与调试(gdb)
- QTP学习笔记(一):安装篇,解决QTP无法识别控件对象的问题
- C#.NET验证码智能识别学习笔记---06 解决java jre问题:JTessBoxEditor.jar打开的时报找不到或无法加载主类 com.sun.tools.javac.Main错误
- TensorFlow学习笔记(UTF-8 问题解决 UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: in
- Verilog学习笔记3:解决ModelSim闪退的问题
- springmvc学习笔记-返回json的日期格式问题的解决方法
- Linux学习30_configure: error: no acceptable C compiler found in $PATH 问题解决
- 学习Linux C过程中要解决的问题
- VMware调整分辨率&解决鼠标"飘"的问题笔记(Linux)
- 【极客学院】-python学习笔记-3-单线程爬虫 (request安装遇到问题及解决,应用requests提取信息)
- C++学习笔记第一天:熟悉C++,解决“Cannot find or open the PDB file”问题
- 【Linux学习笔记】39:Linux下C模拟读者写者问题
- 【MySQL学习笔记】4:解决JDBC连接MySQL的query结果中文乱码问题
- springmvc学习笔记(21)-springmvc整合mybatis遇到的问题及解决小结
- Logistic Regression 学习笔记 : 解决概率预估或者分类问题
- linux学习笔记——安装问题
- HTML开发学习笔记(CSS浏览器兼容性问题解决)