aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2001-12-20 03:26:08 +0000
committerJim Blandy <jimb@codesourcery.com>2001-12-20 03:26:08 +0000
commit4e40929968103f27fba096429d4df7e1be8b80e6 (patch)
tree089bb00c6ba305f22a3745efd81aecdee053f56b /gdb/gdbtypes.c
parent3695c2997d939be2c281d498c1b232805b4cb09b (diff)
downloadfsf-binutils-gdb-4e40929968103f27fba096429d4df7e1be8b80e6.zip
fsf-binutils-gdb-4e40929968103f27fba096429d4df7e1be8b80e6.tar.gz
fsf-binutils-gdb-4e40929968103f27fba096429d4df7e1be8b80e6.tar.bz2
* gdbarch.sh (TARGET_CHAR_SIGNED): New macro.
* gdbarch.c, gdbarch.h: Regenerated. * gdbtypes.c (build_gdbtypes): If TARGET_CHAR_SIGNED is zero, set the TYPE_FLAG_UNSIGNED bit on the type. * s390-tdep.c (s390_gdbarch_init): On the S/390, characters are unsigned by default. * rs6000-tdep.c (rs6000_gdbarch_init): Same for PowerPC and RS6000.
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r--gdb/gdbtypes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 4a4ff1e..1204a0c 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -3029,7 +3029,8 @@ build_gdbtypes (void)
"void", (struct objfile *) NULL);
builtin_type_char =
init_type (TYPE_CODE_INT, TARGET_CHAR_BIT / TARGET_CHAR_BIT,
- TYPE_FLAG_NOSIGN,
+ (TYPE_FLAG_NOSIGN
+ | (TARGET_CHAR_SIGNED ? 0 : TYPE_FLAG_UNSIGNED)),
"char", (struct objfile *) NULL);
builtin_type_true_char =
init_type (TYPE_CODE_CHAR, TARGET_CHAR_BIT / TARGET_CHAR_BIT,