diff options
Diffstat (limited to 'gdb/cpu32bug-rom.c')
-rw-r--r-- | gdb/cpu32bug-rom.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/cpu32bug-rom.c b/gdb/cpu32bug-rom.c index efaf89a..4341789 100644 --- a/gdb/cpu32bug-rom.c +++ b/gdb/cpu32bug-rom.c @@ -28,6 +28,8 @@ #include "serial.h" #include "regcache.h" +#include "m68k-tdep.h" + static void cpu32bug_open (char *args, int from_tty); static void @@ -53,12 +55,12 @@ cpu32bug_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; |