diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-09-26 16:36:15 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-10-29 16:44:44 -0400 |
commit | b610c04548a39dbce6d51c33d7a8125e59066939 (patch) | |
tree | 9ebf5e8721754311148f61ea22e71126a8318574 /gdb/amd64-tdep.c | |
parent | 2ad53ea10c14445d6074814bbdfe46bd787038cb (diff) | |
download | gdb-b610c04548a39dbce6d51c33d7a8125e59066939.zip gdb-b610c04548a39dbce6d51c33d7a8125e59066939.tar.gz gdb-b610c04548a39dbce6d51c33d7a8125e59066939.tar.bz2 |
gdb: remove TYPE_FIELD_BITPOS
Remove TYPE_FIELD_BITPOS, replace its uses with type::field +
field::loc_bitpos.
Change-Id: Iccd8d5a77e5352843a837babaa6bd284162e0320
Diffstat (limited to 'gdb/amd64-tdep.c')
-rw-r--r-- | gdb/amd64-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index e563d36..de04bbd 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c @@ -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; |