aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
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')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/config/mn10300/tm-mn10300.h2
-rw-r--r--gdb/mn10300-tdep.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 47fe784..2ed8cb0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2001-08-11 Andrew Cagney <ac131313@redhat.com>
+ * config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete.
+ * mn10300-tdep.c (mn10300_gdbarch_init): Initialize pc_regnum and
+ sp_regnum.
+
+2001-08-11 Andrew Cagney <ac131313@redhat.com>
+
* doublest.c (convert_doublest_to_floatformat): Rename
floatformat_from_doublest. Make static.
(convert_floatformat_to_doublest): Rename floatformat_to_doublest.
diff --git a/gdb/config/mn10300/tm-mn10300.h b/gdb/config/mn10300/tm-mn10300.h
index 39bf555..81cfaab 100644
--- a/gdb/config/mn10300/tm-mn10300.h
+++ b/gdb/config/mn10300/tm-mn10300.h
@@ -49,8 +49,6 @@
#define A0_REGNUM 4
#define A2_REGNUM 6
#define A3_REGNUM 7
-#define SP_REGNUM 8
-#define PC_REGNUM 9
#define MDR_REGNUM 10
#define PSW_REGNUM 11
#define LIR_REGNUM 12
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);