diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-09-23 23:43:13 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-10-29 16:44:21 -0400 |
commit | 3a543e211e963c6ff131e9275524d4632309f15b (patch) | |
tree | 56ab4d72be7729aa1e013f4b00476a66856127fb /gdb/mips-tdep.c | |
parent | 8d939e8ea4b05a263579b533850a983668ccd1fa (diff) | |
download | binutils-gdb-3a543e211e963c6ff131e9275524d4632309f15b.tar.gz |
gdb: remove FIELD_BITPOS macro
Remove FIELD_BITPOD, replace its uses with field::loc_bitpos.
Change-Id: Idb99297e0170661254276c206383a7e9bf1a935a
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r-- | gdb/mips-tdep.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index d9f8652009b..65eec479758 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -5248,8 +5248,7 @@ mips_n32n64_return_value (struct gdbarch *gdbarch, struct value *function, : MIPS_V0_REGNUM); field < type->num_fields (); field++, regnum += 2) { - int offset = (FIELD_BITPOS (type->field (field)) - / TARGET_CHAR_BIT); + int offset = type->field (field).loc_bitpos () / TARGET_CHAR_BIT; if (mips_debug) fprintf_unfiltered (gdb_stderr, "Return float struct+%d\n", offset); @@ -5800,8 +5799,7 @@ mips_o32_return_value (struct gdbarch *gdbarch, struct value *function, for (field = 0, regnum = mips_regnum (gdbarch)->fp0; field < type->num_fields (); field++, regnum += 2) { - int offset = (FIELD_BITPOS (type->fields ()[field]) - / TARGET_CHAR_BIT); + int offset = (type->fields ()[field].loc_bitpos () / TARGET_CHAR_BIT); if (mips_debug) fprintf_unfiltered (gdb_stderr, "Return float struct+%d\n", offset); |