This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: [RFA/DWARF] Set TYPE_FLAG_STUB for enum DIEs that are declarations only


> 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.


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