aboutsummaryrefslogtreecommitdiff
path: root/gdb/m68hc11-tdep.c
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2001-07-22 12:37:02 +0000
committerStephane Carrez <stcarrez@nerim.fr>2001-07-22 12:37:02 +0000
commit7d32ba20c1c825da2c838f050df84c7610fda082 (patch)
tree7a203db2437b5194a71d5a5b04890446c5761310 /gdb/m68hc11-tdep.c
parent00d0c012efb0162f90f653473a54f6324cf81d06 (diff)
downloadfsf-binutils-gdb-7d32ba20c1c825da2c838f050df84c7610fda082.zip
fsf-binutils-gdb-7d32ba20c1c825da2c838f050df84c7610fda082.tar.gz
fsf-binutils-gdb-7d32ba20c1c825da2c838f050df84c7610fda082.tar.bz2
* m68hc11-tdep.c (m68hc11_gdbarch_init): Define int at 16-bits.
Diffstat (limited to 'gdb/m68hc11-tdep.c')
-rw-r--r--gdb/m68hc11-tdep.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/m68hc11-tdep.c b/gdb/m68hc11-tdep.c
index 9e96ebd..14ae8b1 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);