summaryrefslogtreecommitdiff
path: root/gdb/dbug-rom.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2002-11-23 19:45:12 +0000
committerAndreas Schwab <schwab@suse.de>2002-11-23 19:45:12 +0000
commitff9e26114fef2c2731f638ba212df193a4537296 (patch)
tree8ec05c929e1a3447d139dbefadef3ce830a3777b /gdb/dbug-rom.c
parentdab145dd93ad9b04235eb1e35f93d5a0e004b7a4 (diff)
downloadgdb-ff9e26114fef2c2731f638ba212df193a4537296.tar.gz
* 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/dbug-rom.c')
-rw-r--r--gdb/dbug-rom.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/dbug-rom.c b/gdb/dbug-rom.c
index bd20184c006..aadab6f5b06 100644
--- a/gdb/dbug-rom.c
+++ b/gdb/dbug-rom.c
@@ -32,6 +32,8 @@
#include "serial.h"
#include "regcache.h"
+#include "m68k-tdep.h"
+
static void dbug_open (char *args, int from_tty);
static void
@@ -57,12 +59,12 @@ dbug_supply_register (char *regname, int regnamelen, char *val, int vallen)
case 'D':
if (regname[1] < '0' || regname[1] > '7')
return;
- regno = regname[1] - '0' + D0_REGNUM;
+ regno = regname[1] - '0' + M68K_D0_REGNUM;
break;
case 'A':
if (regname[1] < '0' || regname[1] > '7')
return;
- regno = regname[1] - '0' + A0_REGNUM;
+ regno = regname[1] - '0' + M68K_A0_REGNUM;
break;
default:
return;