c++ debugging hosed
Benjamin Kosnik
bkoz@redhat.com
Mon Oct 29 10:12:00 GMT 2001
On x86/linux, both --with-dwarf2 and default gcc-3.x toolchains can no
longer find RTTI info:
--with-dwarf2:
(gdb) p *this
can't find class named `std::basic_filebuf<char, std::char_traits<char> >', as given by C++ RTTI
default:
(gdb) p *this
Attempt to take contents of a non-pointer value.
This is just
#include <iostream>
int main()
{
std::cout << std::cin.rdbuf()->in_avail() << std::endl;
return 0;
}
after compiling libstdc++ with
make CXXFLAGS='-g -O0' all
Sadly, this bug has been around for 2 weeks now. It's making debugging
C++ code more difficult than it should be. Any hope for a quick fix?
-benjamin
More information about the Libstdc++
mailing list