使用gcc -g编译,gdb调试时仍然存在“no debug symbols found”的错误
2011-04-25 21:56
507 查看
今天为调试一段代码,使用gcc将程序用-g选项重新编译。但是使用gdb进行debug时,仍然出现“no debug symbols found”的错误。仔细检查了一下Makefile,原来后面定义的连接选项中指定了-s。gcc的文档中说明如下:
去掉-s后,可以用gdb进行调试了
-sRemove all symbol table and relocation information from the executable.
相关文章推荐
- 使用gcc -g编译,gdb调试时仍然存在“no debug symbols found”的错误
- gcc编译步骤 动态库、静态库的使用、gdb调试、Makefile编写
- gdb加了-g仍然(no debugging symbols found)
- luarocks install *错误之Error: No results matching query were found. && gcc编译
- Keil 使用 Jlink 进行调试出现错误: No Algorithm found for: 08000000H - 08001557H错误的解决
- gdb调试(no debugging symbols found)
- cmake && gdb 调试出错 Reading symbols from ***...(no debugging symbols found)...done.
- Vim编辑器的修改和编辑的常规操作,gcc编译,gdb调试工具,shell使用基础
- 【转】gdb 调试出错 no debugging symbols found
- 使用gcc编译gdb调试
- gdb调试出现“no debugging symbols found”,不能打断点调试的原因.
- Keil 5 使用 Jlink 进行调试出现错误: No Algorithm found for:错误的解决过程
- gdb和gcc升级:解决编译和调试时出现gdb no symbol in current context
- ubuntu android studio 编译及运行错误Error retrieving parent for item: No resource found that matches the given name
- 使用gdb调试内存重复释放导致的malloc_error_break错误崩溃
- 使用libdwraf写的一个读取GCC -g参数编译生成的调试信息的例子
- Linux下的简单C程序gcc编译、gdb调试。
- 使用vs2008 的OutputDebugString 时编译产生的错误
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 编译fdk-aac,执行批处理的时候出现这个错误,mingw32-gcc.exe: error: CreateProcess: No such file or directory的问题