使用gcc -g编译,gdb调试时仍然存在“no debug symbols found”的错误
摘要:
今天为调试一段代码,使用gcc将程序用-g选项重新编译。但是使用gdb进行debug时,仍然出现“no debug symbols found”的错误。仔细检查了一下Makefile,原来后面定义的连接选项中指定了-s。gcc的文档中说明如下: -s Remove all symbol table and relocation information from the executable. 去掉... 阅读全文
posted @ 2011-04-25 21:56 narcasse 阅读(682) 评论(0) 推荐(0)
浙公网安备 33010602011771号