diff options
Diffstat (limited to 'gdb/riscv-tdep.c')
-rw-r--r-- | gdb/riscv-tdep.c | 2 |
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 ()) { |