This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.


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

Re: gdb debugging native solaris c++ code


On Thu, Feb 26, 1998 at 08:34:39AM +0100, Peter.Schauer wrote:
> 
> I suspect that it will remain a problem, until someone contributes clean
> patches or funds the necessary non trivial work involved.
> 
> This is becoming a FAQ, perhaps we should add a note to gdb/README...

Good idea!

> > if I compile more than one c++-file with native CC 4.2 on 
> > Solaris 2.5.1, gdb-4.16 seems to be unable to read the debugging
> > symbols from the resulting binary.

"set demangle arm" helps, and Sun CC 2.x stabs extentions are supported.
Sun CC 3.x stabs don't contain any C++ info, and Sun CC 4.x has stabs 
which are very different from those in 2.x and are not supported.  
As Peter says, the work to add support is non-trivial.

dawn