diff options
author | Joel Brobecker <brobecker@gnat.com> | 2008-01-03 17:29:56 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2008-01-03 17:29:56 +0000 |
commit | 7baab83af395204b52e556d77493d79bb27cd794 (patch) | |
tree | 260cbf1b34d00dbad15e67f63716233e7448283d /gdb/dwarf2read.c | |
parent | 889d417c7441f3b300e5646cf278fb2f93ff0f8e (diff) | |
download | gdb-7baab83af395204b52e556d77493d79bb27cd794.tar.gz |
* dwarf2read.c (read_enumeration_type): Flag type as stub if
the given die is a declaration.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |