forked from Imagelibrary/binutils-gdb
* ada-lang.c (ada_coerce_to_simple_array_type): Use builtin_type_int32
instead of builtin_type_int as default unspecified integral type. (ada_index_type, ada_array_bound_from_type, ada_variant_discrim_type, assign_component, to_fixed_range_type): Likewise. * ada-typeprint.c (print_range, print_range_bound, print_range_type_named): Likewise. * ada-valprint.c (print_optional_low_bound, ada_val_print_1): Likewise. * eval.c (evaluate_subexp_standard): Likewise. * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise. * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset, build_gdb_vtable_type): Likewise. * jv-lang.c (java_array_type): Likewise. * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Likewise. * m2-valprint.c (m2_print_long_set): Likewise. * parse.c (follow_types): Likewise. * p-typeprint.c (pascal_type_print_base): Likewise. * valops.c (value_one, value_array, value_string, value_bitstring): Likewise. * value.c (allocate_repeat_value, value_from_string): Likewise. * varobj.c (c_describe_child): Likewise. * mt-tdep.c (mt_register_type): Likewise. * sh-tdep.c (sh_sh4_build_float_register_type): Likewise. * sh64-tdep.c (sh64_build_float_register_type): Likewise.
This commit is contained in:
@@ -132,7 +132,7 @@ build_gdb_vtable_type (struct gdbarch *arch)
|
||||
FIELD_NAME (*field) = "vcall_and_vbase_offsets";
|
||||
FIELD_TYPE (*field)
|
||||
= create_array_type (0, ptrdiff_type,
|
||||
create_range_type (0, builtin_type_int, 0, -1));
|
||||
create_range_type (0, builtin_type_int32, 0, -1));
|
||||
FIELD_BITPOS (*field) = offset * TARGET_CHAR_BIT;
|
||||
offset += TYPE_LENGTH (FIELD_TYPE (*field));
|
||||
field++;
|
||||
@@ -155,7 +155,7 @@ build_gdb_vtable_type (struct gdbarch *arch)
|
||||
FIELD_NAME (*field) = "virtual_functions";
|
||||
FIELD_TYPE (*field)
|
||||
= create_array_type (0, ptr_to_void_fn_type,
|
||||
create_range_type (0, builtin_type_int, 0, -1));
|
||||
create_range_type (0, builtin_type_int32, 0, -1));
|
||||
FIELD_BITPOS (*field) = offset * TARGET_CHAR_BIT;
|
||||
offset += TYPE_LENGTH (FIELD_TYPE (*field));
|
||||
field++;
|
||||
@@ -326,7 +326,7 @@ gnuv3_get_virtual_fn (struct value *container, struct type *fntype,
|
||||
|
||||
/* Fetch the appropriate function pointer from the vtable. */
|
||||
vfn = value_subscript (value_field (vtable, vtable_field_virtual_functions),
|
||||
value_from_longest (builtin_type_int, vtable_index));
|
||||
value_from_longest (builtin_type_int32, vtable_index));
|
||||
|
||||
/* If this architecture uses function descriptors directly in the vtable,
|
||||
then the address of the vtable entry is actually a "function pointer"
|
||||
@@ -429,7 +429,7 @@ gnuv3_baseclass_offset (struct type *type, int index, const bfd_byte *valaddr,
|
||||
address));
|
||||
vtable = value_at_lazy (vtable_type,
|
||||
vtable_address - vtable_address_point_offset ());
|
||||
offset_val = value_from_longest(builtin_type_int, cur_base_offset);
|
||||
offset_val = value_from_longest(builtin_type_int32, cur_base_offset);
|
||||
vbase_array = value_field (vtable, vtable_field_vcall_and_vbase_offsets);
|
||||
base_offset = value_as_long (value_subscript (vbase_array, offset_val));
|
||||
return base_offset;
|
||||
|
||||
Reference in New Issue
Block a user