summaryrefslogtreecommitdiffstats
path: root/gdb/mips64obsd-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/mips64obsd-nat.c')
-rw-r--r--gdb/mips64obsd-nat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/mips64obsd-nat.c b/gdb/mips64obsd-nat.c
index e0fe0286b7..4f02a21d94 100644
--- a/gdb/mips64obsd-nat.c
+++ b/gdb/mips64obsd-nat.c
@@ -79,7 +79,7 @@ mips64obsd_collect_gregset (const struct regcache *regcache,
for all registers. */
static void
-mips64obsd_fetch_inferior_registers (int regnum)
+mips64obsd_fetch_inferior_registers (struct regcache *regcache, int regnum)
{
struct reg regs;
@@ -87,14 +87,14 @@ mips64obsd_fetch_inferior_registers (int regnum)
(PTRACE_TYPE_ARG3) &regs, 0) == -1)
perror_with_name (_("Couldn't get registers"));
- mips64obsd_supply_gregset (current_regcache, &regs);
+ mips64obsd_supply_gregset (regcache, &regs);
}
/* Store register REGNUM back into the inferior. If REGNUM is -1, do
this for all registers. */
static void
-mips64obsd_store_inferior_registers (int regnum)
+mips64obsd_store_inferior_registers (struct regcache *regcache, int regnum)
{
struct reg regs;
@@ -102,7 +102,7 @@ mips64obsd_store_inferior_registers (int regnum)
(PTRACE_TYPE_ARG3) &regs, 0) == -1)
perror_with_name (_("Couldn't get registers"));
- mips64obsd_collect_gregset (current_regcache, &regs, regnum);
+ mips64obsd_collect_gregset (regcache, &regs, regnum);
if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
(PTRACE_TYPE_ARG3) &regs, 0) == -1)
OpenPOWER on IntegriCloud