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 | 02eb380e728ce255142356a3174351ec7a64f675 (patch) | |
tree | 0bb6e036d3c10c49b3dd59c7873d69e5ce97fe68 /gdb/dwarf2read.c | |
parent | 1689ecf896f0c27f47ce95536c6891632221e19b (diff) | |
download | gdb-02eb380e728ce255142356a3174351ec7a64f675.zip gdb-02eb380e728ce255142356a3174351ec7a64f675.tar.gz gdb-02eb380e728ce255142356a3174351ec7a64f675.tar.bz2 |
* 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 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); } |