From 1969d2ed6042ef775e261ec69eba8488ea2682a7 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Wed, 3 Oct 2007 20:37:31 +0000 Subject: [PATCH] * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the bounds. (init_vector_type): Use builtin_type_int32. --- gdb/ChangeLog | 6 ++++++ gdb/gdbtypes.c | 4 +--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f86cadd..1eb332a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2007-10-03 Daniel Jacobowitz + + * 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 * s390-tdep.c (s390_regset_from_core_section): Allow excess section diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 838bfcf..7ffa986 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -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)); TYPE_FIELD_BITPOS (result_type, 0) = low_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) 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, create_range_type (0, - builtin_type_int, + builtin_type_int32, 0, n-1)); make_vector_type (array_type); return array_type; -- 2.7.4