aboutsummaryrefslogtreecommitdiff
path: root/gdb/mt-tdep.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2009-07-02 12:18:46 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2009-07-02 12:18:46 +0000
commite3506a9f27bb02c48fad7978a446777b047efe51 (patch)
tree32309d8d7461846c2147e5ef31a1c67d7c0c20eb /gdb/mt-tdep.c
parentd5c831bd769fa23e1f0d6c7e9ac9efbad0f84a6d (diff)
downloadgdb-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/mt-tdep.c')
-rw-r--r--gdb/mt-tdep.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/mt-tdep.c b/gdb/mt-tdep.c
index 04029a4..ec52d5b 100644
--- a/gdb/mt-tdep.c
+++ b/gdb/mt-tdep.c
@@ -257,11 +257,7 @@ mt_register_type (struct gdbarch *arch, int regnum)
if (regnum >= 0 && regnum < MT_NUM_REGS + MT_NUM_PSEUDO_REGS)
{
if (copro_type == NULL)
- {
- struct type *temp;
- temp = create_range_type (NULL, builtin_type_int32, 0, 1);
- copro_type = create_array_type (NULL, builtin_type_int16, temp);
- }
+ copro_type = lookup_array_range_type (builtin_type_int16, 0, 1);
switch (regnum)
{
case MT_PC_REGNUM: