diff options
author | Jeff Law <law@redhat.com> | 1997-08-06 06:24:31 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1997-08-06 06:24:31 +0000 |
commit | c031a0bdf6bb1f5cdf16b338ba5c5f4e08fbc8f1 (patch) | |
tree | d34b69b20d4c0c3ccf8043fa345b7845f1061e47 /gdb/hpread.c | |
parent | ef9a68f7e3e53c264e53597034c9c345e39e93b6 (diff) | |
download | gdb-c031a0bdf6bb1f5cdf16b338ba5c5f4e08fbc8f1.zip gdb-c031a0bdf6bb1f5cdf16b338ba5c5f4e08fbc8f1.tar.gz gdb-c031a0bdf6bb1f5cdf16b338ba5c5f4e08fbc8f1.tar.bz2 |
* hpread.c (hpread_read_struct_type): Use accessor macros rather
than directly mucking around with data structures.
Diffstat (limited to 'gdb/hpread.c')
-rw-r--r-- | gdb/hpread.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/hpread.c b/gdb/hpread.c index 9afaff1..8183558 100644 --- a/gdb/hpread.c +++ b/gdb/hpread.c @@ -1506,14 +1506,15 @@ hpread_read_struct_type (hp_type, dn_bufp, objfile) list = new; list->field.name = VT (objfile) + fieldp->dfield.name; - list->field.bitpos = fieldp->dfield.bitoffset; + FIELD_BITPOS (list->field) = fieldp->dfield.bitoffset; if (fieldp->dfield.bitlength % 8) - list->field.bitsize = fieldp->dfield.bitlength; + FIELD_BITSIZE (list->field) = fieldp->dfield.bitlength; else - list->field.bitsize = 0; + FIELD_BITSIZE (list->field) = 0; nfields++; field = fieldp->dfield.nextfield; - list->field.type = hpread_type_lookup (fieldp->dfield.type, objfile); + FIELD_TYPE (list->field) = hpread_type_lookup (fieldp->dfield.type, + objfile); } TYPE_NFIELDS (type) = nfields; |