* m68hc11-tdep.c (m68hc11_gdbarch_init): Define int at 16-bits.
authorStephane Carrez <stcarrez@nerim.fr>
Sun, 22 Jul 2001 12:37:02 +0000 (12:37 +0000)
committerStephane Carrez <stcarrez@nerim.fr>
Sun, 22 Jul 2001 12:37:02 +0000 (12:37 +0000)
gdb/ChangeLog
gdb/m68hc11-tdep.c

index c6bf47f..fdcf7d8 100644 (file)
@@ -1,3 +1,7 @@
+2001-07-22  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
+
+       * m68hc11-tdep.c (m68hc11_gdbarch_init): Define int at 16-bits.
+
 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
 
        * utils.c (init_page_info): Use tui_get_command_dimension.
index 9e96ebd..14ae8b1 100644 (file)
@@ -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);