This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfc/rfa] accept DW_TAG_namespace and friends, possibly on 5.3
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: David Carlton <carlton at math dot stanford dot edu>
- Cc: gdb-patches at sources dot redhat dot com,Elena Zannoni <ezannoni at redhat dot com>, Jim Blandy <jimb at redhat dot com>
- Date: Tue, 22 Oct 2002 18:09:48 -0400 (EDT)
- Subject: Re: [rfc/rfa] accept DW_TAG_namespace and friends, possibly on 5.3
> > currently have a version of GCC that emits many
> > DW_TAG_imported_declarations or any DW_TAG_imported_modules; I hope
> > that I'll have one soon (Daniel Berlin is working on it but he's busy;
> > maybe I'll try to work on it myself, too),
> I should have it done in a few hours, actually.
Now I remember why i didn't do it in the first place.
Using decl's aren't common to the tree structure (USING_DECL and
USING_STMT are in cp/cp-tree.def).
We also never end up walking the statement tree, and there are no debug
hooks
for handling each statement anyway (inlined subroutines get handled
without needing to do this), so it's a loss.
Thus, we'll never see a USING_STMT or USING_DECL.
In other words, this is gonna be complicated and i don't know if it'll be
accepted, but we'll see.
I can make the DW_TAG_imported_* appear and appear in the right order, but
not necessarily in the right context.
--Dan