aboutsummaryrefslogtreecommitdiff
path: root/gdb/riscv-tdep.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-09-26 16:36:15 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-10-29 16:44:44 -0400
commitb610c04548a39dbce6d51c33d7a8125e59066939 (patch)
tree9ebf5e8721754311148f61ea22e71126a8318574 /gdb/riscv-tdep.c
parent2ad53ea10c14445d6074814bbdfe46bd787038cb (diff)
downloadgdb-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/riscv-tdep.c')
-rw-r--r--gdb/riscv-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/riscv-tdep.c b/gdb/riscv-tdep.c
index 069aebf..bfd93c6 100644
--- a/gdb/riscv-tdep.c
+++ b/gdb/riscv-tdep.c
@@ -2548,7 +2548,7 @@ riscv_struct_info::analyse_inner (struct type *type, int offset)
struct type *field_type = type->field (i).type ();
field_type = check_typedef (field_type);
int field_offset
- = offset + TYPE_FIELD_BITPOS (type, i) / TARGET_CHAR_BIT;
+ = offset + type->field (i).loc_bitpos () / TARGET_CHAR_BIT;
switch (field_type->code ())
{