使用cmake为gdb创建符号表 [英] Creating symbol table for gdb using cmake
本文介绍了使用cmake为gdb创建符号表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法只使用cmake为gdb创建符号表?
Is there any way to create only symbol table using cmake for gdb ?
推荐答案
gdb
是将 -g
传递给 gcc
code> g ++ 编译器(以及在链接时)。
The usual way to produce debugging information for gdb
is to pass -g
to the gcc
or g++
compiler (and also at linking time).
查看 Cmake常见问题如何获取可调试的可执行文件。
Look into the Cmake FAQ for how to get a debuggable executable.
这篇关于使用cmake为gdb创建符号表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文