diff options
Diffstat (limited to 'gdb/gnu-v3-abi.c')
-rw-r--r-- | gdb/gnu-v3-abi.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c index 748d555..b82ac59 100644 --- a/gdb/gnu-v3-abi.c +++ b/gdb/gnu-v3-abi.c @@ -137,28 +137,28 @@ build_gdb_vtable_type (struct gdbarch *arch) /* ptrdiff_t vcall_and_vbase_offsets[0]; */ field->set_name ("vcall_and_vbase_offsets"); field->set_type (lookup_array_range_type (ptrdiff_type, 0, -1)); - SET_FIELD_BITPOS (*field, offset * TARGET_CHAR_BIT); + field->set_loc_bitpos (offset * TARGET_CHAR_BIT); offset += TYPE_LENGTH (field->type ()); field++; /* ptrdiff_t offset_to_top; */ field->set_name ("offset_to_top"); field->set_type (ptrdiff_type); - SET_FIELD_BITPOS (*field, offset * TARGET_CHAR_BIT); + field->set_loc_bitpos (offset * TARGET_CHAR_BIT); offset += TYPE_LENGTH (field->type ()); field++; /* void *type_info; */ field->set_name ("type_info"); field->set_type (void_ptr_type); - SET_FIELD_BITPOS (*field, offset * TARGET_CHAR_BIT); + field->set_loc_bitpos (offset * TARGET_CHAR_BIT); offset += TYPE_LENGTH (field->type ()); field++; /* void (*virtual_functions[0]) (); */ field->set_name ("virtual_functions"); field->set_type (lookup_array_range_type (ptr_to_void_fn_type, 0, -1)); - SET_FIELD_BITPOS (*field, offset * TARGET_CHAR_BIT); + field->set_loc_bitpos (offset * TARGET_CHAR_BIT); offset += TYPE_LENGTH (field->type ()); field++; @@ -1035,14 +1035,14 @@ build_std_type_info_type (struct gdbarch *arch) /* The vtable. */ field->set_name ("_vptr.type_info"); field->set_type (void_ptr_type); - SET_FIELD_BITPOS (*field, offset * TARGET_CHAR_BIT); + field->set_loc_bitpos (offset * TARGET_CHAR_BIT); offset += TYPE_LENGTH (field->type ()); field++; /* The name. */ field->set_name ("__name"); field->set_type (char_ptr_type); - SET_FIELD_BITPOS (*field, offset * TARGET_CHAR_BIT); + field->set_loc_bitpos (offset * TARGET_CHAR_BIT); offset += TYPE_LENGTH (field->type ()); field++; |