This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/DWARF] Set TYPE_FLAG_STUB for enum DIEs that are declarations only
> Date: Mon, 7 Jan 2008 21:57:14 -0800
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: gdb-patches@sourceware.org
>
> > The preample was an introduction to an part of the Ada language, not
> > a description of a problem. The "stub" DIE is a routine concept,
> > that we see all the time with C opaque types. In fact, any type
> > can be incomplete.
> >
> > But rather than arguing this ad vitam aeternam, here's a suggestion:
>
> First of all, I have to apologize for writing this way to you.
I never received that, so no harm done.
> Do you still think a comment should be added? If yes, is the comment
> I suggested a step in the right direction?
>
> > /* Enumeration DIEs descriptions can be imcomplete. In Ada, any
> > type can be declared as private in the package spec, and then
> > defined only inside the package body. Such types are known as
> > Taft Amendment Types. When another package uses such a type,
> > an incomplete DIE may be generated by the compiler. */
Yes, thanks. All I wanted was some kind of reference to Ada and
private type declaration. Armed with these clues, an intelligent
reader will find out the rest.