This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++ debugging hosed



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]