aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.c
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>1998-05-04 15:16:42 +0000
committerFrank Ch. Eigler <fche@redhat.com>1998-05-04 15:16:42 +0000
commitce22529028dd9d6afbd97851334ee4cb19f2e2a9 (patch)
tree84f4b6e92e9e1036e5a49c6b64a7c8a0ff165f40 /gdb/gdbtypes.c
parentd116929ee7e109a04689ffb77c6487bbf549799b (diff)
downloadgdb-ce22529028dd9d6afbd97851334ee4cb19f2e2a9.zip
gdb-ce22529028dd9d6afbd97851334ee4cb19f2e2a9.tar.gz
gdb-ce22529028dd9d6afbd97851334ee4cb19f2e2a9.tar.bz2
* Fixes for chill PR 15681
Fri May 1 19:51:32 1998 Frank Ch. Eigler <fche@cygnus.com> * stabsread.c (read_one_struct_field): Do not override supplied bitfield size for a range type value. * gdbtypes.c (create_range_type): For a range with positive lower limit, declare range type as unsigned.
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r--gdb/gdbtypes.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 1c3bbf2..416180e 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -358,6 +358,9 @@ create_range_type (result_type, index_type, low_bound, 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;
+
return (result_type);
}