aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2003-01-13 20:08:58 +0000
committerDaniel Jacobowitz <drow@false.org>2003-01-13 20:08:58 +0000
commit973ccf8b5520ba49010e7d92ab8b2ff71fbd7e8b (patch)
tree1d39b5a5358b3288e8e2f796894c437105051a53 /gdb/stabsread.c
parenta1fb14a2c2feb11e1d3ab0be56d7962914a7133b (diff)
downloadgdb-973ccf8b5520ba49010e7d92ab8b2ff71fbd7e8b.zip
gdb-973ccf8b5520ba49010e7d92ab8b2ff71fbd7e8b.tar.gz
gdb-973ccf8b5520ba49010e7d92ab8b2ff71fbd7e8b.tar.bz2
Fix PR gdb/872.
* gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN. (integer_types_same_name_p): New function. (rank_one_type): Use it. * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r--gdb/stabsread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index 7d4459e..135ff83 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -4930,7 +4930,7 @@ read_range_type (char **pp, int typenums[2], struct objfile *objfile)
/* Special case: char is defined (Who knows why) as a subrange of
itself with range 0-127. */
else if (self_subrange && n2 == 0 && n3 == 127)
- return init_type (TYPE_CODE_INT, 1, 0, NULL, objfile);
+ return init_type (TYPE_CODE_INT, 1, TYPE_FLAG_NOSIGN, NULL, objfile);
/* We used to do this only for subrange of self or subrange of int. */
else if (n2 == 0)