diff options
author | Michael Eager <eager@eagercon.com> | 2014-01-07 09:15:48 -0800 |
---|---|---|
committer | Michael Eager <eager@eagercon.com> | 2014-06-30 17:40:01 -0700 |
commit | 422b1cb0912f88f0509f75b9fee055c8259c13be (patch) | |
tree | 6370f9d8441154043a208c50f1762404726e3a5b /gdb/dwarf2read.c | |
parent | 9ef5ddf51cc4d5e9dfc779dea29d97047fa232bf (diff) | |
download | gdb-422b1cb0912f88f0509f75b9fee055c8259c13be.zip gdb-422b1cb0912f88f0509f75b9fee055c8259c13be.tar.gz gdb-422b1cb0912f88f0509f75b9fee055c8259c13be.tar.bz2 |
2014-01-07 Michael Eager <eager@eagercon.com>
* dwarf2read.c (read_structure_type): Set stub if ICC & length == 0.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index fc4f7cb..2563418 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -12982,10 +12982,11 @@ read_structure_type (struct die_info *die, struct dwarf2_cu *cu) TYPE_LENGTH (type) = 0; } - if (producer_is_icc (cu)) + if (producer_is_icc (cu) && (TYPE_LENGTH (type) == 0)) { /* ICC does not output the required DW_AT_declaration on incomplete types, but gives them a size of zero. */ + TYPE_STUB (type) = 1; } else TYPE_STUB_SUPPORTED (type) = 1; |