如何在automake c项目中获取调试符号 [英] how to get debugging symbols in automake c project
本文介绍了如何在automake c项目中获取调试符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想调试一个automake c项目。我在Windows中使用Cygwin进行操作。
我可以正确编译它,通过执行
I want to debug a automake c project. and I am doing it with Cygwin in windows.
I can compile it correctly, by doing
aclocal
automake --add-missing
autoreconf
./configure
make
使用gdb调试器,我想生成调试,所以我确实喜欢
for use gdb debugger, I want to generate debug , so I did like
...
./configure CFALGS=-g3 (or ./configure CFLAGS="-g -o0")
make
之后,当我加载execitable时使用
after that, when I load execitable by using
gdb ./slim.exe
它说:
it says:
no debug symbols found
如何在可执行文件中获取调试符号以便为c项目使用gdb调试器?
我是那些新的,所以请回答一下具体的问题。
提前谢谢
how can I get debug symbols in executable in order to use gdb debugger for c project?
I am new at those , so please answer a bit specific.
Thanks in advance
推荐答案
我发现了问题,
gbd .lib / slim.exe
工作。调试版本在那里。
I found the problem,
gbd .lib/slim.exe
worked. The debug version is there.
这篇关于如何在automake c项目中获取调试符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文