aboutsummaryrefslogtreecommitdiff
path: root/gdb/mn10300-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-08-12 02:10:18 +0000
committerAndrew Cagney <cagney@redhat.com>2001-08-12 02:10:18 +0000
commita15525c16a5143284e86593e2c7ce722c6fdfe60 (patch)
tree39a7ff7baf3579cbdb42e5453041498dba0ad188 /gdb/mn10300-tdep.c
parentc422e77126de8364e08b6e8dff0fa249da9b83fb (diff)
downloadgdb-a15525c16a5143284e86593e2c7ce722c6fdfe60.zip
gdb-a15525c16a5143284e86593e2c7ce722c6fdfe60.tar.gz
gdb-a15525c16a5143284e86593e2c7ce722c6fdfe60.tar.bz2
* config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete.
* mn10300-tdep.c (mn10300_gdbarch_init): Initialize pc_regnum and sp_regnum.
Diffstat (limited to 'gdb/mn10300-tdep.c')
-rw-r--r--gdb/mn10300-tdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c
index d62a093..087f8ef 100644
--- a/gdb/mn10300-tdep.c
+++ b/gdb/mn10300-tdep.c
@@ -1074,6 +1074,8 @@ mn10300_gdbarch_init (struct gdbarch_info info,
set_gdbarch_register_virtual_type (gdbarch, mn10300_register_virtual_type);
set_gdbarch_dwarf2_reg_to_regnum (gdbarch, mn10300_dwarf2_reg_to_regnum);
set_gdbarch_do_registers_info (gdbarch, mn10300_do_registers_info);
+ set_gdbarch_sp_regnum (gdbarch, 8);
+ set_gdbarch_pc_regnum (gdbarch, 9);
set_gdbarch_fp_regnum (gdbarch, 31);
set_gdbarch_virtual_frame_pointer (gdbarch, mn10300_virtual_frame_pointer);