This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] mn10300 chars are unsigned
- From: Kevin Buettner <kevinb at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 27 Mar 2009 21:58:33 -0700
- Subject: [PATCH] mn10300 chars are unsigned
I've just committed the patch below. It fixes several mn10300 test suite
failures.
* mn10300-tdep.c (mn10300_gdbarch_init): For mn10300, by default,
`char' is unsigned.
Index: mn10300-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mn10300-tdep.c,v
retrieving revision 1.163
diff -u -p -r1.163 mn10300-tdep.c
--- mn10300-tdep.c 25 Mar 2009 13:40:05 -0000 1.163
+++ mn10300-tdep.c 28 Mar 2009 04:55:42 -0000
@@ -1413,6 +1413,9 @@ mn10300_gdbarch_init (struct gdbarch_inf
break;
}
+ /* By default, chars are unsigned. */
+ set_gdbarch_char_signed (gdbarch, 0);
+
/* Registers. */
set_gdbarch_num_regs (gdbarch, num_regs);
set_gdbarch_register_type (gdbarch, mn10300_register_type);