From: Joel Brobecker Date: Thu, 3 Jan 2008 17:29:56 +0000 (+0000) Subject: * dwarf2read.c (read_enumeration_type): Flag type as stub if X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02eb380e728ce255142356a3174351ec7a64f675;p=binutils-gdb.git * dwarf2read.c (read_enumeration_type): Flag type as stub if the given die is a declaration. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0a9e63c21e5..96fcd9babbe 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-01-03 Joel Brobecker + + * dwarf2read.c (read_enumeration_type): Flag type as stub if + the given die is a declaration. + 2008-01-03 Joel Brobecker * ada-lang.c (ada_array_bound_from_type): Make non-static. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index a40db748c69..f9dfff19592 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -4233,6 +4233,9 @@ read_enumeration_type (struct die_info *die, struct dwarf2_cu *cu) TYPE_LENGTH (type) = 0; } + if (die_is_declaration (die, cu)) + TYPE_FLAGS (type) |= TYPE_FLAG_STUB; + set_die_type (die, type, cu); }