From e6792c25c51150902fb92e1b13bf1b66214780fc Mon Sep 17 00:00:00 2001 From: ciceron Date: Sun, 22 Jul 2001 12:37:02 +0000 Subject: [PATCH] * m68hc11-tdep.c (m68hc11_gdbarch_init): Define int at 16-bits. --- gdb/ChangeLog | 4 ++++ gdb/m68hc11-tdep.c | 9 ++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c6bf47f4c1..fdcf7d8e79 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2001-07-22 Stephane Carrez + + * m68hc11-tdep.c (m68hc11_gdbarch_init): Define int at 16-bits. + 2001-07-21 Stephane Carrez * utils.c (init_page_info): Use tui_get_command_dimension. diff --git a/gdb/m68hc11-tdep.c b/gdb/m68hc11-tdep.c index 9e96ebdf2c..14ae8b18cb 100644 --- a/gdb/m68hc11-tdep.c +++ b/gdb/m68hc11-tdep.c @@ -1060,10 +1060,13 @@ m68hc11_gdbarch_init (struct gdbarch_info info, default: break; } - - /* Initially set everything according to the ABI. */ + + /* Initially set everything according to the ABI. + Use 16-bit integers since it will be the case for most + programs. The size of these types should normally be set + according to the dwarf2 debug information. */ set_gdbarch_short_bit (gdbarch, 16); - set_gdbarch_int_bit (gdbarch, 32); + set_gdbarch_int_bit (gdbarch, 16); set_gdbarch_float_bit (gdbarch, 32); set_gdbarch_double_bit (gdbarch, 64); set_gdbarch_long_double_bit (gdbarch, 64); -- 2.11.0