Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] xstormy16-tdep.c: Set chars to unsigned
@ 2003-03-25 16:18 Corinna Vinschen
  2003-03-25 16:28 ` Andrew Cagney
  0 siblings, 1 reply; 7+ messages in thread
From: Corinna Vinschen @ 2003-03-25 16:18 UTC (permalink / raw)
  To: gdb-patches

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-03-26  9:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-25 16:18 [PATCH] xstormy16-tdep.c: Set chars to unsigned Corinna Vinschen
2003-03-25 16:28 ` Andrew Cagney
2003-03-25 16:36   ` Corinna Vinschen
2003-03-25 16:54     ` Andrew Cagney
2003-03-25 17:07       ` Corinna Vinschen
2003-03-25 23:24         ` Andrew Cagney
2003-03-26  9:13           ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox