From b610c04548a39dbce6d51c33d7a8125e59066939 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sun, 26 Sep 2021 16:36:15 -0400 Subject: gdb: remove TYPE_FIELD_BITPOS Remove TYPE_FIELD_BITPOS, replace its uses with type::field + field::loc_bitpos. Change-Id: Iccd8d5a77e5352843a837babaa6bd284162e0320 --- gdb/mips-tdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/mips-tdep.c') diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 65eec47..89f689e 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -4858,11 +4858,11 @@ mips_n32n64_fp_arg_chunk_p (struct gdbarch *gdbarch, struct type *arg_type, /* We're only looking at normal fields. */ if (field_is_static (&arg_type->field (i)) - || (TYPE_FIELD_BITPOS (arg_type, i) % 8) != 0) + || (arg_type->field (i).loc_bitpos () % 8) != 0) continue; /* If we have gone past the offset, there is no double to pass. */ - pos = TYPE_FIELD_BITPOS (arg_type, i) / 8; + pos = arg_type->field (i).loc_bitpos () / 8; if (pos > offset) return 0; -- cgit v1.1