aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dwarf2read.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0a9e63c..96fcd9b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2008-01-03 Joel Brobecker <brobecker@adacore.com>
+ * dwarf2read.c (read_enumeration_type): Flag type as stub if
+ the given die is a declaration.
+
+2008-01-03 Joel Brobecker <brobecker@adacore.com>
+
* ada-lang.c (ada_array_bound_from_type): Make non-static.
Handle properly the case when the index type is an enumerated type.
Do not return the subtype of the bounds type, just return the
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index a40db74..f9dfff1 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);
}