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/ax-gdb.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/ax-gdb.c')
-rw-r--r-- | gdb/ax-gdb.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c index 5e04b07..80f6cbf 100644 --- a/gdb/ax-gdb.c +++ b/gdb/ax-gdb.c @@ -1394,9 +1394,8 @@ gen_repeat (struct expression *exp, union exp_element **pc, { /* FIXME-type-allocation: need a way to free this type when we are done with it. */ - struct type *range - = create_range_type (0, builtin_type_int32, 0, length - 1); - struct type *array = create_array_type (0, value1.type, range); + struct type *array + = lookup_array_range_type (value1.type, 0, length - 1); value->kind = axs_lvalue_memory; value->type = array; |