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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: DWARF: C++ namespace support


On Tue, 25 Nov 2003 16:26:23 -0500, Daniel Berlin <dberlin@dberlin.org> said:

>>> I never got a chance to update it for the current CVS head.
>> 
>> Would it be possible for you to get it in 3.4 before door closes?

> Errr, part of it was approved ages ago (the basic support for
> generating namespace dies), i was just waiting for gdb to commit it.
> But if we are going to do it, we should probably do it right and
> submit it all at once.

I think that there is significant benefit in having the
DW_TAG_namespace support even without the support for using directives
and using declarations.  Without DW_TAG_namespace, there is simply no
reliable way for GDB to tell what the fully-qualified name of a type
is, which makes it impossible to reliably get nested types right (and
which gives rise to some quite unfortunate hacks within GDB).  Whereas
without, say, using directives, it just means that users have to do a
little more typing, which isn't nearly as big a deal.

Also, there's the more pragmatic consideration that a patch that
seriously uses DW_TAG_namespace (if it is present) is awaiting
approval for GDB as we speak, whereas nobody has written a patch for
GDB that uses DW_TAG_imported_declaration or whatever the other tags
are called.  I certainly can't write such a patch until I have access
to patches to GCC to generate the information in question, and while
it sounds like I might soon have that from Devang, I'm also not sure
when I'll have the necessary free time.

David Carlton
carlton@kealia.com


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