diff options
Diffstat (limited to 'gdb/mips64obsd-nat.c')
-rw-r--r-- | gdb/mips64obsd-nat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/mips64obsd-nat.c b/gdb/mips64obsd-nat.c index e0fe028..4f02a21 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) ®s, 0) == -1) perror_with_name (_("Couldn't get registers")); - mips64obsd_supply_gregset (current_regcache, ®s); + mips64obsd_supply_gregset (regcache, ®s); } /* 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) ®s, 0) == -1) perror_with_name (_("Couldn't get registers")); - mips64obsd_collect_gregset (current_regcache, ®s, regnum); + mips64obsd_collect_gregset (regcache, ®s, regnum); if (ptrace (PT_SETREGS, PIDGET (inferior_ptid), (PTRACE_TYPE_ARG3) ®s, 0) == -1) |