mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
gdb: remove TYPE_FIELD_BITPOS
Remove TYPE_FIELD_BITPOS, replace its uses with type::field + field::loc_bitpos. Change-Id: Iccd8d5a77e5352843a837babaa6bd284162e0320
This commit is contained in:
@ -563,7 +563,7 @@ amd64_has_unaligned_fields (struct type *type)
|
||||
|| TYPE_FIELD_PACKED (type, i))
|
||||
continue;
|
||||
|
||||
int bitpos = TYPE_FIELD_BITPOS (type, i);
|
||||
int bitpos = type->field (i).loc_bitpos ();
|
||||
|
||||
if (bitpos % 8 != 0)
|
||||
return true;
|
||||
@ -604,7 +604,7 @@ amd64_classify_aggregate_field (struct type *type, int i,
|
||||
if (field_is_static (&type->field (i)) || bitsize == 0)
|
||||
return;
|
||||
|
||||
int bitpos = bitoffset + TYPE_FIELD_BITPOS (type, i);
|
||||
int bitpos = bitoffset + type->field (i).loc_bitpos ();
|
||||
int pos = bitpos / 64;
|
||||
int endpos = (bitpos + bitsize - 1) / 64;
|
||||
|
||||
|
Reference in New Issue
Block a user