使用gcc -g编译,gdb调试时仍然存在“no debug symbols found”的错误
2014-10-05 12:26
931 查看
今天为调试一段代码,使用gcc将程序用-g选项重新编译。但是使用gdb进行debug时,仍然出现“no debug symbols found”的错误。仔细检查了一下Makefile,原来后面定义的连接选项中指定了-s。gcc的文档中说明如下:
去掉-s后,可以用gdb进行调试了
-sRemove all symbol table and relocation information from the executable.
去掉-s后,可以用gdb进行调试了
相关文章推荐
- 使用gcc -g编译,gdb调试时仍然存在“no debug symbols found”的错误
- gcc编译步骤 动态库、静态库的使用、gdb调试、Makefile编写
- gdb调试出现“no debugging symbols found”,不能打断点调试的原因.
- Keil 使用 Jlink 进行调试出现错误: No Algorithm found for: 08000000H - 08001557H错误的解决
- gdb和gcc升级:解决编译和调试时出现gdb no symbol in current context
- luarocks install *错误之Error: No results matching query were found. && gcc编译
- cmake && gdb 调试出错 Reading symbols from ***...(no debugging symbols found)...done.
- gdb调试(no debugging symbols found)
- Vim编辑器的修改和编辑的常规操作,gcc编译,gdb调试工具,shell使用基础
- Keil 5 使用 Jlink 进行调试出现错误: No Algorithm found for:错误的解决过程
- 使用gcc编译gdb调试
- 【转】gdb 调试出错 no debugging symbols found
- gdb加了-g仍然(no debugging symbols found)
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- GCC的一些参数介绍、gdb遇到段错误的一般调试方法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 解决:开启了debug但是Error: debugging information for 'myproject.exe' cannot be found or does not match. No symbols loaded.
- linux下GCC编译环境中二叉树遍历、C语言实现以及调试过程中段错误