aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2010-05-17 15:55:01 +0000
committerPierre Muller <muller@sourceware.org>2010-05-17 15:55:01 +0000
commitd09039ddeb9c1722772f36321e10bcc6751e9e42 (patch)
tree4034c43bce16053e6f8cac8c206ce5f51053ddcb /gdb/dwarf2read.c
parent7a081a30fdfabd82e038396825f02f04fa448c00 (diff)
downloadgdb-d09039ddeb9c1722772f36321e10bcc6751e9e42.zip
gdb-d09039ddeb9c1722772f36321e10bcc6751e9e42.tar.gz
gdb-d09039ddeb9c1722772f36321e10bcc6751e9e42.tar.bz2
* dwarf2read.c (read_set_type): Set type length if
DW_AT_byte_size attribute is present.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 2d69764..196fccc 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -5547,7 +5547,10 @@ static struct type *
read_set_type (struct die_info *die, struct dwarf2_cu *cu)
{
struct type *set_type = create_set_type (NULL, die_type (die, cu));
+ struct attribute *attr = dwarf2_attr (die, DW_AT_byte_size, cu);
+ if (attr)
+ TYPE_LENGTH (set_type) = DW_UNSND (attr);
return set_die_type (die, set_type, cu);
}