mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-03 04:01:22 +08:00
* 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.
This commit is contained in:
@ -803,13 +803,10 @@ java_demangle_type_signature (char *signature)
|
||||
struct type *
|
||||
java_array_type (struct type *type, int dims)
|
||||
{
|
||||
struct type *range_type;
|
||||
|
||||
while (dims-- > 0)
|
||||
{
|
||||
range_type = create_range_type (NULL, builtin_type_int32, 0, 0);
|
||||
/* FIXME This is bogus! Java arrays are not gdb arrays! */
|
||||
type = create_array_type (NULL, type, range_type);
|
||||
type = lookup_array_range_type (type, 0, 0);
|
||||
}
|
||||
|
||||
return type;
|
||||
|
Reference in New Issue
Block a user