GCC debugger stack trace displays wrong file name and line number

后端 未结 11 1939
说谎
说谎 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 01:00

    I encountered this several years ago when transitioning from the Codewarrior compilers to Xcode. I believe the way to get around this is to put the flag "-fno-inline-functions" in Other C Flags (for Dev only).

    This problem was more pronounced on the PowerPC architecture for us.

    What about if you remove the "-fvisibility-inlines-hidden" and "-mfix-and-continue" flags?

    I've never had the "fix and continue" feature work properly for me.

提交回复
热议问题