------- Comment #7 from pluto at agmk dot net  2010-09-15 11:34 -------
(In reply to comment #6)
> (In reply to comment #5)
> > with -gdwarf-4 enabled it fails on gdb-7.2 with runtime error:
> 
> I couldn't reproduce that with 4.5.2 20100909, can you give more details?

$ cat t.cpp 
#include <string>
int main()
{
        std::string s( "foo" );
        s.size();
}

$ /local/devel/toolchain45/x86_64-gnu-linux.mt_alloc/bin/x86_64-gnu-linux-g++
t.cpp -gdwarf-4 -g2 -o t                     

$ gdb ./t
(gdb) b main
Breakpoint 1 at 0x402c8d: file t.cpp, line 4.
(gdb) r
Starting program: /home/users/pawels/sandbox/src/bug/t 
Breakpoint 1, main () at t.cpp:4
4               std::string s( "foo" );
(gdb) n
5               s.size();
(gdb) p s
$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.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45403

Reply via email to