diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-01-12 16:29:44 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-01-12 16:29:44 +0000 |
commit | ec920329ebb9c4291d546970a3724177d876bce7 (patch) | |
tree | 36690c3b5dddf23848d8d0070279b44b28c8d7b9 | |
parent | 43c4bab0554541b32ec8c32dc58e2022e627dae5 (diff) | |
download | fsf-binutils-gdb-ec920329ebb9c4291d546970a3724177d876bce7.zip fsf-binutils-gdb-ec920329ebb9c4291d546970a3724177d876bce7.tar.gz fsf-binutils-gdb-ec920329ebb9c4291d546970a3724177d876bce7.tar.bz2 |
2002-01-12 Elena Zannoni <ezannoni@redhat.com>
* sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
the function.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/sh-tdep.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c982a16..2b2fb5f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-01-12 Elena Zannoni <ezannoni@redhat.com> + + * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in + the function. + 2002-01-12 Andrew Cagney <ac131313@redhat.com> * language.c (longest_raw_hex_string): Delete unused function. diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index 3dc8b06..c80b36d 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -1907,6 +1907,7 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_num_pseudo_regs (gdbarch, 0); set_gdbarch_max_register_raw_size (gdbarch, 4); set_gdbarch_max_register_virtual_size (gdbarch, 4); + set_gdbarch_long_bit (gdbarch, 4 * TARGET_CHAR_BIT); set_gdbarch_ptr_bit (gdbarch, 4 * TARGET_CHAR_BIT); set_gdbarch_num_regs (gdbarch, SH_DEFAULT_NUM_REGS); set_gdbarch_sp_regnum (gdbarch, 15); @@ -2083,7 +2084,6 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_short_bit (gdbarch, 2 * TARGET_CHAR_BIT); set_gdbarch_int_bit (gdbarch, 4 * TARGET_CHAR_BIT); - set_gdbarch_long_bit (gdbarch, 4 * TARGET_CHAR_BIT); set_gdbarch_long_long_bit (gdbarch, 8 * TARGET_CHAR_BIT); set_gdbarch_float_bit (gdbarch, 4 * TARGET_CHAR_BIT); set_gdbarch_double_bit (gdbarch, 8 * TARGET_CHAR_BIT); |