weird gdb message when debugging C++ program

前端 未结 2 602
执念已碎
执念已碎 2020-12-06 13:52

I use the apple\'s gdb, version as follow

GNU gdb 6.3.50-20050815 (Apple version gdb-1344) (Fri Jul  3 01:19:56 UTC 2009)
Copyright 2004 Free Software Founda         


        
2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-06 14:18

    The version of GDB you're using (Apple's version) doesn't seem to support the newer features of the compiler you installed from macports.

    The error message is reporting that GDB doesn't understand some of the debugging information it's encountered in the program. The debugging information it has shown is a C++11 feature.

    The solution is to either upgrade to a newer GDB (probably from macports if there's one there), not use the features that GDB doesn't understand, or accept that the version of GDB you have won't be able to understand this.

提交回复
热议问题