Creating symbol table for gdb using cmake

后端 未结 3 1191
感动是毒
感动是毒 2020-12-23 13:41

Is there any way to create only symbol table using cmake for gdb ?

3条回答
  •  情话喂你
    2020-12-23 14:19

    The usual way to produce debugging information for gdb is to pass -g to the gcc or g++ compiler (and also at linking time).

    Look into the Cmake FAQ for how to get a debuggable executable.

提交回复
热议问题