diff options
Diffstat (limited to 'gdb/ppcobsd-nat.c')
-rw-r--r-- | gdb/ppcobsd-nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ppcobsd-nat.c b/gdb/ppcobsd-nat.c index 9186907..acb9d8b 100644 --- a/gdb/ppcobsd-nat.c +++ b/gdb/ppcobsd-nat.c @@ -169,14 +169,14 @@ ppcobsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) return 0; read_memory (pcb->pcb_sp, (gdb_byte *)&sf, sizeof sf); - regcache_raw_supply (regcache, SP_REGNUM, &sf.sp); + regcache_raw_supply (regcache, gdbarch_sp_regnum (current_gdbarch), &sf.sp); regcache_raw_supply (regcache, tdep->ppc_cr_regnum, &sf.cr); regcache_raw_supply (regcache, tdep->ppc_gp0_regnum + 2, &sf.fixreg2); for (i = 0, regnum = tdep->ppc_gp0_regnum + 13; i < 19; i++, regnum++) regcache_raw_supply (regcache, regnum, &sf.fixreg[i]); read_memory (sf.sp, (gdb_byte *)&cf, sizeof cf); - regcache_raw_supply (regcache, PC_REGNUM, &cf.lr); + regcache_raw_supply (regcache, gdbarch_pc_regnum (current_gdbarch), &cf.lr); regcache_raw_supply (regcache, tdep->ppc_gp0_regnum + 30, &cf.r30); regcache_raw_supply (regcache, tdep->ppc_gp0_regnum + 31, &cf.r31); |