mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
* gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
bounds. (init_vector_type): Use builtin_type_int32.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
|
* gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
|
||||||
|
bounds.
|
||||||
|
(init_vector_type): Use builtin_type_int32.
|
||||||
|
|
||||||
2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
|
2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
|
||||||
|
|
||||||
* s390-tdep.c (s390_regset_from_core_section): Allow excess section
|
* s390-tdep.c (s390_regset_from_core_section): Allow excess section
|
||||||
|
@ -705,8 +705,6 @@ create_range_type (struct type *result_type, struct type *index_type,
|
|||||||
memset (TYPE_FIELDS (result_type), 0, 2 * sizeof (struct field));
|
memset (TYPE_FIELDS (result_type), 0, 2 * sizeof (struct field));
|
||||||
TYPE_FIELD_BITPOS (result_type, 0) = low_bound;
|
TYPE_FIELD_BITPOS (result_type, 0) = low_bound;
|
||||||
TYPE_FIELD_BITPOS (result_type, 1) = high_bound;
|
TYPE_FIELD_BITPOS (result_type, 1) = high_bound;
|
||||||
TYPE_FIELD_TYPE (result_type, 0) = builtin_type_int; /* FIXME */
|
|
||||||
TYPE_FIELD_TYPE (result_type, 1) = builtin_type_int; /* FIXME */
|
|
||||||
|
|
||||||
if (low_bound >= 0)
|
if (low_bound >= 0)
|
||||||
TYPE_FLAGS (result_type) |= TYPE_FLAG_UNSIGNED;
|
TYPE_FLAGS (result_type) |= TYPE_FLAG_UNSIGNED;
|
||||||
@ -950,7 +948,7 @@ init_vector_type (struct type *elt_type, int n)
|
|||||||
|
|
||||||
array_type = create_array_type (0, elt_type,
|
array_type = create_array_type (0, elt_type,
|
||||||
create_range_type (0,
|
create_range_type (0,
|
||||||
builtin_type_int,
|
builtin_type_int32,
|
||||||
0, n-1));
|
0, n-1));
|
||||||
make_vector_type (array_type);
|
make_vector_type (array_type);
|
||||||
return array_type;
|
return array_type;
|
||||||
|
Reference in New Issue
Block a user