diff options
Diffstat (limited to 'gdb/dbug-rom.c')
-rw-r--r-- | gdb/dbug-rom.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/dbug-rom.c b/gdb/dbug-rom.c index bd20184..aadab6f 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; |