]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* 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 c6bf47f4c17d2376759a3d4d62fe6dd9734f7199..fdcf7d8e7940c06fc4b7c450192c9d2e0c903f64 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 9e96ebdf2c5d427c7d91383b49b7b9da33b7171b..14ae8b18cb5c7d37bc37dbdd5f88aeab0f17e0e0 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);