diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2009-07-02 12:18:46 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2009-07-02 12:18:46 +0000 |
commit | e3506a9f27bb02c48fad7978a446777b047efe51 (patch) | |
tree | 32309d8d7461846c2147e5ef31a1c67d7c0c20eb /gdb/gnu-v3-abi.c | |
parent | d5c831bd769fa23e1f0d6c7e9ac9efbad0f84a6d (diff) | |
download | gdb-e3506a9f27bb02c48fad7978a446777b047efe51.zip gdb-e3506a9f27bb02c48fad7978a446777b047efe51.tar.gz gdb-e3506a9f27bb02c48fad7978a446777b047efe51.tar.bz2 |
* gdbtypes.c (lookup_array_range_type): Add prototype.
(lookup_string_range_type): Likewise.
* gdbtypes.c (lookup_array_range_type): New function.
(lookup_string_range_type): Likewise.
* ax-gdb.c (gen_repeat): Use lookup_array_range_type.
* parse.c (follow_types): Likewise.
* jv-lang.c (java_array_type): Likewise.
* gnu-v3-abi.c (build_gdb_vtable_type): 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.
* value.c (allocate_repeat_value): Likewise.
* valops.c (value_array, value_cstring): Likewise.
* valops.c (value_string): Use lookup_string_range_type.
Diffstat (limited to 'gdb/gnu-v3-abi.c')
-rw-r--r-- | gdb/gnu-v3-abi.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c index 6613e75..cc90c01 100644 --- a/gdb/gnu-v3-abi.c +++ b/gdb/gnu-v3-abi.c @@ -145,9 +145,7 @@ build_gdb_vtable_type (struct gdbarch *arch) /* ptrdiff_t vcall_and_vbase_offsets[0]; */ FIELD_NAME (*field) = "vcall_and_vbase_offsets"; - FIELD_TYPE (*field) - = create_array_type (0, ptrdiff_type, - create_range_type (0, builtin_type_int32, 0, -1)); + FIELD_TYPE (*field) = lookup_array_range_type (ptrdiff_type, 0, -1); FIELD_BITPOS (*field) = offset * TARGET_CHAR_BIT; offset += TYPE_LENGTH (FIELD_TYPE (*field)); field++; @@ -168,9 +166,7 @@ build_gdb_vtable_type (struct gdbarch *arch) /* void (*virtual_functions[0]) (); */ FIELD_NAME (*field) = "virtual_functions"; - FIELD_TYPE (*field) - = create_array_type (0, ptr_to_void_fn_type, - create_range_type (0, builtin_type_int32, 0, -1)); + FIELD_TYPE (*field) = lookup_array_range_type (ptr_to_void_fn_type, 0, -1); FIELD_BITPOS (*field) = offset * TARGET_CHAR_BIT; offset += TYPE_LENGTH (FIELD_TYPE (*field)); field++; |