diff options
Diffstat (limited to 'gdb/shnbsd-nat.c')
-rw-r--r-- | gdb/shnbsd-nat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/shnbsd-nat.c b/gdb/shnbsd-nat.c index 128dc0f..6afa573 100644 --- a/gdb/shnbsd-nat.c +++ b/gdb/shnbsd-nat.c @@ -42,7 +42,7 @@ || (regno) == SR_REGNUM) static void -shnbsd_fetch_inferior_registers (int regno) +shnbsd_fetch_inferior_registers (struct regcache *regcache, int regno) { if (regno == -1 || GETREGS_SUPPLIES (regno)) { @@ -52,7 +52,7 @@ shnbsd_fetch_inferior_registers (int regno) (PTRACE_TYPE_ARG3) &inferior_registers, 0) == -1) perror_with_name (_("Couldn't get registers")); - shnbsd_supply_reg (current_regcache, (char *) &inferior_registers, regno); + shnbsd_supply_reg (regcache, (char *) &inferior_registers, regno); if (regno != -1) return; @@ -60,7 +60,7 @@ shnbsd_fetch_inferior_registers (int regno) } static void -shnbsd_store_inferior_registers (int regno) +shnbsd_store_inferior_registers (struct regcache *regcache, int regno) { if (regno == -1 || GETREGS_SUPPLIES (regno)) { @@ -70,7 +70,7 @@ shnbsd_store_inferior_registers (int regno) (PTRACE_TYPE_ARG3) &inferior_registers, 0) == -1) perror_with_name (_("Couldn't get registers")); - shnbsd_fill_reg (current_regcache, (char *) &inferior_registers, regno); + shnbsd_fill_reg (regcache, (char *) &inferior_registers, regno); if (ptrace (PT_SETREGS, PIDGET (inferior_ptid), (PTRACE_TYPE_ARG3) &inferior_registers, 0) == -1) |