------- Comment #5 from pluto at agmk dot net 2010-09-15 07:52 ------- there's one more issue with std::string pretty printing. with -gdwarf-4 enabled it fails on gdb-7.2 with runtime error:
$1 = Traceback (most recent call last): File "/local/devel/toolchain45/x86_64-gnu-linux.mt_alloc/share/gcc-4.5.2/python/libstdcxx/v6/printers.py", line 546, in to_string reptype = gdb.lookup_type (str (realtype) + '::_Rep').pointer () RuntimeError: No type named std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep. for -gdwarf-2 and -gdwarf-3 it works. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45403