当我使用苹果的GDB,版本遵循怪异GDB消息调试C++程序
GNU gdb 6.3.50-20050815 (Apple version gdb-1344) (Fri Jul 3 01:19:56 UTC 2009)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".
我不使用的Xcode IDE,因为我需要的makefile管理项目都比较方便,尤其是因为我经常需要在远程机器上编译和运行程序。我最近开始使用下面的C++ 11特性(在maC++的g ++ - 4.6和4.7中):移动构造函数,nullptr,auto和decltype。我随着研究的深入需要d3bug我的代码,并以下怪异的消息出现,而不是步入一个功能:
Die: DW_TAG_unspecified_type (abbrev = 36, offset = 4315)
has children: FALSE
attributes:
DW_AT_name (DW_FORM_string) string: "decltype(nullptr)"
从自出现此消息,以下所有gdb命令是由同一个奇怪的消息回答,所以它不是可以再调试一次。这似乎与c + + 11有关。我的问题是,你有没有遇到这个消息,以及如何摆脱它 呢?
在此先感谢
朱利亚诺
我的猜测是你的gdb版本滞后 - 它看起来像是[DWARF](http://wiki.dwarfstd.org/index.php?title=Dwarf_FAQ#What_is_DWARF.3F)信息它没有'不了解。解决方案:构建/安装更新的gdb。 – Flexo