for all registers. */
static void
-ppcobsd_fetch_registers (int regnum)
+ppcobsd_fetch_registers (struct regcache *regcache, int regnum)
{
struct reg regs;
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
perror_with_name (_("Couldn't get registers"));
- ppc_supply_gregset (&ppcobsd_gregset, current_regcache, -1,
+ ppc_supply_gregset (&ppcobsd_gregset, regcache, -1,
®s, sizeof regs);
#ifndef PT_GETFPREGS
- ppc_supply_fpregset (&ppcobsd_gregset, current_regcache, -1,
+ ppc_supply_fpregset (&ppcobsd_gregset, regcache, -1,
®s, sizeof regs);
#endif
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
perror_with_name (_("Couldn't get floating point status"));
- ppc_supply_fpregset (&ppcobsd_fpregset, current_regcache, -1,
+ ppc_supply_fpregset (&ppcobsd_fpregset, regcache, -1,
&fpregs, sizeof fpregs);
}
#endif
this for all registers. */
static void
-ppcobsd_store_registers (int regnum)
+ppcobsd_store_registers (struct regcache *regcache, int regnum)
{
struct reg regs;
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
perror_with_name (_("Couldn't get registers"));
- ppc_collect_gregset (&ppcobsd_gregset, current_regcache,
+ ppc_collect_gregset (&ppcobsd_gregset, regcache,
regnum, ®s, sizeof regs);
#ifndef PT_GETFPREGS
- ppc_collect_fpregset (&ppcobsd_gregset, current_regcache,
+ ppc_collect_fpregset (&ppcobsd_gregset, regcache,
regnum, ®s, sizeof regs);
#endif
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
perror_with_name (_("Couldn't get floating point status"));
- ppc_collect_fpregset (&ppcobsd_fpregset, current_regcache,
+ ppc_collect_fpregset (&ppcobsd_fpregset, regcache,
regnum, &fpregs, sizeof fpregs);
if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),