diff options
Diffstat (limited to 'gdb/dbug-rom.c')
-rw-r--r-- | gdb/dbug-rom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dbug-rom.c b/gdb/dbug-rom.c index 298a28b..c37fbf3 100644 --- a/gdb/dbug-rom.c +++ b/gdb/dbug-rom.c @@ -51,12 +51,12 @@ dbug_supply_register (struct regcache *regcache, char *regname, case 'S': if (regname[1] != 'R') return; - regno = PS_REGNUM; + regno = gdbarch_ps_regnum (current_gdbarch); break; case 'P': if (regname[1] != 'C') return; - regno = PC_REGNUM; + regno = gdbarch_pc_regnum (current_gdbarch); break; case 'D': if (regname[1] < '0' || regname[1] > '7') |