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
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 05 Jan 2008 14:33:15 +0200
- Subject: Re: [RFA/DWARF] Set TYPE_FLAG_STUB for enum DIEs that are declarations only
- References: <20080103153952.GC582@adacore.com> <20080103154055.GD582@adacore.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Thu, 3 Jan 2008 07:40:55 -0800
> From: Joel Brobecker <brobecker@adacore.com>
>
> --- dwarf2read.c (revision 59)
> +++ dwarf2read.c (revision 60)
> @@ -4237,6 +4237,9 @@ read_enumeration_type (struct die_info *
> TYPE_LENGTH (type) = 0;
> }
>
> + if (die_is_declaration (die, cu))
> + TYPE_FLAGS (type) |= TYPE_FLAG_STUB;
> +
I'd suggest a comment here to explain why we do this.