GCC debugger stack trace displays wrong file name and line number

后端 未结 11 1931
说谎
说谎 2021-01-21 00:22

I am trying to port a fairly large C++ project to using g++ 4.0 on Mac OS X. My project compiles without errors, but I can\'t get GDB to work properly. When I look at the stack

11条回答
  •  孤街浪徒
    2021-01-21 00:46

    From your flags the debug information should be in the object files.

    Does your project settings build the executable in one location then move the final executable to another location when completed? If this is the case then gdb may not be finding the objectects files and thus not correctly retrieving the debug information from the object files.

    Just a guess.

提交回复
热议问题