From ce22529028dd9d6afbd97851334ee4cb19f2e2a9 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Mon, 4 May 1998 15:16:42 +0000 Subject: * Fixes for chill PR 15681 Fri May 1 19:51:32 1998 Frank Ch. Eigler * 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. --- gdb/gdbtypes.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/gdbtypes.c') 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); } -- cgit v1.1