This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
c++ debugging hosed
- To: jason at redhat dot com, dan at cgsoftware dot com, libstdc++ at gcc dot gnu dot org
- Subject: c++ debugging hosed
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Mon, 29 Oct 2001 10:12:55 -0800
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