This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] xstormy16-tdep.c: Set chars to unsigned
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 25 Mar 2003 17:18:31 +0100
- Subject: [PATCH] xstormy16-tdep.c: Set chars to unsigned
- Reply-to: gdb-patches at sources dot redhat dot com
Hi,
I've applied the below patch to xstormy16-tdep. It resolves the FAILs
in charset.exp due to the different opinion of gdb and the xstormy16
target about sign of characters.
Corinna
2003-03-25 Corinna Vinschen <vinschen at redhat dot com>
* xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
set_gdbarch_char_signed.
Index: xstormy16-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/xstormy16-tdep.c,v
retrieving revision 1.32
diff -u -p -r1.32 xstormy16-tdep.c
--- xstormy16-tdep.c 24 Mar 2003 03:54:50 -0000 1.32
+++ xstormy16-tdep.c 25 Mar 2003 16:12:34 -0000
@@ -1106,6 +1106,7 @@ xstormy16_gdbarch_init (struct gdbarch_i
set_gdbarch_fix_call_dummy (gdbarch, generic_fix_call_dummy);
set_gdbarch_breakpoint_from_pc (gdbarch, xstormy16_breakpoint_from_pc);
+ set_gdbarch_char_signed (gdbarch, 0);
set_gdbarch_int_bit (gdbarch, 2 * TARGET_CHAR_BIT);
set_gdbarch_ptr_bit (gdbarch, 2 * TARGET_CHAR_BIT);
set_gdbarch_addr_bit (gdbarch, 4 * TARGET_CHAR_BIT);
--
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen at redhat dot com