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/gnu-v2-abi.c | |
parent | 2ad53ea10c14445d6074814bbdfe46bd787038cb (diff) | |
download | binutils-b610c04548a39dbce6d51c33d7a8125e59066939.zip binutils-b610c04548a39dbce6d51c33d7a8125e59066939.tar.gz binutils-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/gnu-v2-abi.c')
-rw-r--r-- | gdb/gnu-v2-abi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gnu-v2-abi.c b/gdb/gnu-v2-abi.c index cdcd3d5..019b011 100644 --- a/gdb/gnu-v2-abi.c +++ b/gdb/gnu-v2-abi.c @@ -364,7 +364,7 @@ gnuv2_baseclass_offset (struct type *type, int index, CORE_ADDR addr; field_type = check_typedef (type->field (i).type ()); - field_offset = TYPE_FIELD_BITPOS (type, i) / 8; + field_offset = type->field (i).loc_bitpos () / 8; field_length = TYPE_LENGTH (field_type); if (!value_bytes_available (val, embedded_offset + field_offset, |