diff options
Diffstat (limited to 'gdb/vaxbsd-nat.c')
-rw-r--r-- | gdb/vaxbsd-nat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/vaxbsd-nat.c b/gdb/vaxbsd-nat.c index 388d527..229e8a6 100644 --- a/gdb/vaxbsd-nat.c +++ b/gdb/vaxbsd-nat.c @@ -65,7 +65,7 @@ vaxbsd_collect_gregset (const struct regcache *regcache, for all registers. */ static void -vaxbsd_fetch_inferior_registers (int regnum) +vaxbsd_fetch_inferior_registers (struct regcache *regcache, int regnum) { struct reg regs; @@ -73,14 +73,14 @@ vaxbsd_fetch_inferior_registers (int regnum) (PTRACE_TYPE_ARG3) ®s, 0) == -1) perror_with_name (_("Couldn't get registers")); - vaxbsd_supply_gregset (current_regcache, ®s); + vaxbsd_supply_gregset (regcache, ®s); } /* Store register REGNUM back into the inferior. If REGNUM is -1, do this for all registers. */ static void -vaxbsd_store_inferior_registers (int regnum) +vaxbsd_store_inferior_registers (struct regcache *regcache, int regnum) { struct reg regs; @@ -88,7 +88,7 @@ vaxbsd_store_inferior_registers (int regnum) (PTRACE_TYPE_ARG3) ®s, 0) == -1) perror_with_name (_("Couldn't get registers")); - vaxbsd_collect_gregset (current_regcache, ®s, regnum); + vaxbsd_collect_gregset (regcache, ®s, regnum); if (ptrace (PT_SETREGS, PIDGET (inferior_ptid), (PTRACE_TYPE_ARG3) ®s, 0) == -1) |