aboutsummaryrefslogtreecommitdiff
path: root/gdb/rom68k-rom.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2002-11-23 19:45:12 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2002-11-23 19:45:12 +0000
commit32eeb91a760126d6e7717f0220dee3fabd31877e (patch)
tree381d2dcf673e78bdc8fff19d2b462598eb44269f /gdb/rom68k-rom.c
parent9648bac836b757582577dd67e1faf39b465b39c4 (diff)
downloadgdb-32eeb91a760126d6e7717f0220dee3fabd31877e.zip
gdb-32eeb91a760126d6e7717f0220dee3fabd31877e.tar.gz
gdb-32eeb91a760126d6e7717f0220dee3fabd31877e.tar.bz2
* Makefile.in (m68k_tdep_h): Define.
(abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o) (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h). * m68k-tdep.c: Move register number enum ... * m68k-tdep.h: ... to this new file and rename the constants from E_* to M68K_*. All uses changed. * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions. * abug-rom.c: Include "m68k-tdep.h". Use M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM. * cpu32bug-rom.c: Likewise. * dbug-rom.c: Likewise. * m68k-tdep.c: Likewise. * m68klinux-nat.c: Likewise. * remote-est.c: Likewise. * rom68k-rom.c: Likewise. * config/m68k/tm-linux.h: Likewise.
Diffstat (limited to 'gdb/rom68k-rom.c')
-rw-r--r--gdb/rom68k-rom.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/rom68k-rom.c b/gdb/rom68k-rom.c
index cc0586f..c065a87 100644
--- a/gdb/rom68k-rom.c
+++ b/gdb/rom68k-rom.c
@@ -27,6 +27,8 @@
#include "regcache.h"
#include "value.h"
+#include "m68k-tdep.h"
+
static void rom68k_open (char *args, int from_tty);
/* Return true if C is a hex digit.
@@ -129,13 +131,13 @@ rom68k_supply_register (char *regname, int regnamelen, char *val, int vallen)
case 'D':
if (regname[1] != 'R')
break;
- regno = D0_REGNUM;
+ regno = M68K_D0_REGNUM;
numregs = 8;
break;
case 'A':
if (regname[1] != 'R')
break;
- regno = A0_REGNUM;
+ regno = M68K_A0_REGNUM;
numregs = 7;
break;
}