summaryrefslogtreecommitdiff
path: root/gdb/shnbsd-nat.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-05-06 14:29:58 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-05-06 14:29:58 +0000
commit4f6a8402ded0aad39960f9a19646f100b681d384 (patch)
tree710f7d6c9884e371b0bbf4f3ac6bdc122e896932 /gdb/shnbsd-nat.c
parent00ed120bfef05521235c3d15b39a864f21379798 (diff)
downloadgdb-4f6a8402ded0aad39960f9a19646f100b681d384.tar.gz
* shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
instead of current_regcache. Make REGS const. (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache. * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update prototypes. * shnbsd-nat.c: Include "regcache.h". (shnbsd_fetch_inferior_registers): Pass current_regcache to shnbsd_supply_reg. (shnbsd_store_inferior_registers): Pass current_regcache to shnbsd_fill_reg. * Makefile.in (shbsd-nat.o): Update dependencies.
Diffstat (limited to 'gdb/shnbsd-nat.c')
-rw-r--r--gdb/shnbsd-nat.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/shnbsd-nat.c b/gdb/shnbsd-nat.c
index 8139ed9caf6..128dc0faeb6 100644
--- a/gdb/shnbsd-nat.c
+++ b/gdb/shnbsd-nat.c
@@ -31,6 +31,8 @@
#include "sh-tdep.h"
#include "shnbsd-tdep.h"
#include "inf-ptrace.h"
+#include "regcache.h"
+
/* Determine if PT_GETREGS fetches this register. */
#define GETREGS_SUPPLIES(regno) \
@@ -50,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 ((char *) &inferior_registers, regno);
+ shnbsd_supply_reg (current_regcache, (char *) &inferior_registers, regno);
if (regno != -1)
return;
@@ -68,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 ((char *) &inferior_registers, regno);
+ shnbsd_fill_reg (current_regcache, (char *) &inferior_registers, regno);
if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
(PTRACE_TYPE_ARG3) &inferior_registers, 0) == -1)