[PATCH] xstormy16-tdep.c: Set chars to unsigned

Corinna Vinschen vinschen@redhat.com
Tue Mar 25 16:18:00 GMT 2003


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@redhat.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@redhat.com



More information about the Gdb-patches mailing list