This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH]: Char are unsigned on HC11/HC12


Hi!

Committed this patch to fix a pb detected by gdb testsuite.  'char' is unsigned on
HC11/HC12 and must be marked as such.  Committed on mainline and 6_0 branch.

Stephane

2003-06-23 Stephane Carrez <stcarrez@nerim.fr>

	* m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
	as characters are unsigned.

Index: m68hc11-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/m68hc11-tdep.c,v
retrieving revision 1.76
diff -u -p -r1.76 m68hc11-tdep.c
--- m68hc11-tdep.c	13 Jun 2003 04:40:32 -0000	1.76
+++ m68hc11-tdep.c	23 Jun 2003 19:59:58 -0000
@@ -1352,6 +1352,9 @@ m68hc11_gdbarch_init (struct gdbarch_inf
   set_gdbarch_ptr_bit (gdbarch, 16);
   set_gdbarch_long_long_bit (gdbarch, 64);
 
+  /* Characters are unsigned.  */
+  set_gdbarch_char_signed (gdbarch, 0);
+
   /* Set register info.  */
   set_gdbarch_fp0_regnum (gdbarch, -1);
   set_gdbarch_deprecated_max_register_raw_size (gdbarch, 2);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]