[EMAIL PROTECTED] (Tom Ace) writes:

> Dear bug-gdb,
> 
> I've had problems with gdb 4.18 when debugging C++ code
> compiled by gcc 2.95.2.  A lot of things ahve gone wrong,
> enough to make me wonder whether gdb is unhappy with the
> fact that I'm using an SMP Linux kernel.  In any case, 
> I've made a small testcase to show one of the problems
> I've encountered.  gdb 4.18 can't find a member function 
> in a class, something gdb 4.15.1 is able to do.
> 


Please try gdb-5.0, I fixed this bug a *long* time ago (like 7 or 8
months).

It has nothing to do with the SMP linux kernel, it has to do with
stabs being amazingly bad at C++.

As an alternative, if you can't use gdb-5.0 for various reasons (IE
you aren't allowed or whatever), use -gdwarf-2 instead of just -g,
which will give you DWARF2 debug info, which works much better with
C++.
--Dan
C++ Support maintainer - GDB.

Reply via email to