aboutsummaryrefslogtreecommitdiff
path: root/gdb/sh-tdep.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2001-07-27 03:29:08 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2001-07-27 03:29:08 +0000
commit88e04cc199260c84417b2153ef5bb1f94138bb8e (patch)
treeb62824979e30291d2d8a41c3ea764e8a0632926b /gdb/sh-tdep.c
parentceeea5f68b39f998b18f397d1299108f6c6559f8 (diff)
downloadgdb-88e04cc199260c84417b2153ef5bb1f94138bb8e.zip
gdb-88e04cc199260c84417b2153ef5bb1f94138bb8e.tar.gz
gdb-88e04cc199260c84417b2153ef5bb1f94138bb8e.tar.bz2
2001-07-26 Elena Zannoni <ezannoni@redhat.com>
* sh-tdep.c (sh_gdbarch_init): Use SH_DEFAULT_NUM_REGS instead of NUM_REGS. (SH_DEFAULT_NUM_REGS): Define.
Diffstat (limited to 'gdb/sh-tdep.c')
-rw-r--r--gdb/sh-tdep.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c
index 8e15c7e..52ec8e8 100644
--- a/gdb/sh-tdep.c
+++ b/gdb/sh-tdep.c
@@ -50,6 +50,8 @@ int (*print_sh_insn) (bfd_vma, disassemble_info*);
CORE_ADDR (*skip_prologue_hard_way) (CORE_ADDR);
void (*do_pseudo_register) (int);
+#define SH_DEFAULT_NUM_REGS 59
+
/* Define other aspects of the stack frame.
we keep a copy of the worked out return pc lying around, since it
is a useful bit of info */
@@ -1906,12 +1908,12 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
set_gdbarch_max_register_raw_size (gdbarch, 4);
set_gdbarch_max_register_virtual_size (gdbarch, 4);
set_gdbarch_ptr_bit (gdbarch, 4 * TARGET_CHAR_BIT);
- set_gdbarch_num_regs (gdbarch, 59);
+ set_gdbarch_num_regs (gdbarch, SH_DEFAULT_NUM_REGS);
set_gdbarch_sp_regnum (gdbarch, 15);
set_gdbarch_fp_regnum (gdbarch, 14);
set_gdbarch_pc_regnum (gdbarch, 16);
set_gdbarch_register_size (gdbarch, 4);
- set_gdbarch_register_bytes (gdbarch, NUM_REGS * 4);
+ set_gdbarch_register_bytes (gdbarch, SH_DEFAULT_NUM_REGS * 4);
set_gdbarch_fetch_pseudo_register (gdbarch, sh_fetch_pseudo_register);
set_gdbarch_store_pseudo_register (gdbarch, sh_store_pseudo_register);
set_gdbarch_do_registers_info (gdbarch, sh_do_registers_info);