diff options
Diffstat (limited to 'gdb/mdebugread.c')
-rw-r--r-- | gdb/mdebugread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index 673c370..56710cf 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -1022,7 +1022,7 @@ parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend, name, (char *) NULL)); t->set_code (type_code); - TYPE_LENGTH (t) = sh->value; + t->set_length (sh->value); t->set_num_fields (nfields); f = ((struct field *) TYPE_ALLOC (t, nfields * sizeof (struct field))); t->set_fields (f); @@ -1043,7 +1043,7 @@ parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend, that too. */ if (TYPE_LENGTH (t) == t->num_fields () || TYPE_LENGTH (t) == 0) - TYPE_LENGTH (t) = gdbarch_int_bit (gdbarch) / HOST_CHAR_BIT; + t->set_length (gdbarch_int_bit (gdbarch) / HOST_CHAR_BIT); for (ext_tsym = ext_sh + external_sym_size; ; ext_tsym += external_sym_size) |