This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: fix for GDB C++ STABS problem
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 1 May 2002 21:29:39 -0400
- Subject: Re: RFA: fix for GDB C++ STABS problem
- References: <20020502012250.3FAD65EA11@zwingli.cygnus.com>
On Wed, May 01, 2002 at 08:22:50PM -0500, Jim Blandy wrote:
>
> Here's a fix for the GDB C++ STABS problem I just posted a test case
> for. This prevents `read_struct_type' from scribbling over an
> existing definition, but it doesn't prevent `cleanup_undefined_types'
> from producing bogus cv chains. That's the next patch coming.
>
> The real fix, of course, is to switch to Dwarf 2.
Amen! Thanks for tracking this down.
We could also start supporting the current Sun STABS spec, and then
make GCC emit it - it supports things like namespaces quite well. But
at that point, well, most ELF targets already default to DWARF-2 in GCC
3.1.
I'd rather just go forward with the namespace improvements we were
discussing and leave STABS to rot.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer