From 1b31f75d637045dd1fb0c8ee3dedf21ee6f147f5 Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Sat, 28 Mar 2009 04:56:42 +0000 Subject: [PATCH] * mn10300-tdep.c (mn10300_gdbarch_init): For mn10300, by default, `char' is unsigned. --- gdb/ChangeLog | 5 +++++ gdb/mn10300-tdep.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 679f6cdad63..9da23dcdd82 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-03-28 Kevin Buettner + + * mn10300-tdep.c (mn10300_gdbarch_init): For mn10300, by default, + `char' is unsigned. + 2009-03-28 Pedro Alves * remote.c (remote_stop_ns): If multi-process extensions are off, diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c index eee03388eda..2586475efe7 100644 --- a/gdb/mn10300-tdep.c +++ b/gdb/mn10300-tdep.c @@ -1413,6 +1413,9 @@ mn10300_gdbarch_init (struct gdbarch_info info, 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); -- 2.30.2