From: Pierre Muller Date: Mon, 17 May 2010 15:55:01 +0000 (+0000) Subject: * dwarf2read.c (read_set_type): Set type length if X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d09039ddeb9c1722772f36321e10bcc6751e9e42;p=binutils-gdb.git * dwarf2read.c (read_set_type): Set type length if DW_AT_byte_size attribute is present. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0d2d43c3714..bf3d4382e9c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-05-17 Pierre Muller + + * dwarf2read.c (read_set_type): Set type length if + DW_AT_byte_size attribute is present. + 2010-05-17 Pierre Muller * p-valprint.c (pascal_val_print): Handle set type if range limits diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 2d697642d68..196fccc7293 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); }