aboutsummaryrefslogtreecommitdiff
path: root/gdb/shnbsd-tdep.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
commit4e3269e3f1da68dc6a5e3d36630cf8a833e935d6 (patch)
tree595198fd7c5d6c60b127681b5c388d62a1f71bfb /gdb/shnbsd-tdep.c
parent28f5035f336a0d28983f5c58b3c7abb3d2e47b5d (diff)
downloadgdb-4e3269e3f1da68dc6a5e3d36630cf8a833e935d6.zip
gdb-4e3269e3f1da68dc6a5e3d36630cf8a833e935d6.tar.gz
gdb-4e3269e3f1da68dc6a5e3d36630cf8a833e935d6.tar.bz2
* 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-tdep.c')
-rw-r--r--gdb/shnbsd-tdep.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/shnbsd-tdep.c b/gdb/shnbsd-tdep.c
index da2431d..5108fc4 100644
--- a/gdb/shnbsd-tdep.c
+++ b/gdb/shnbsd-tdep.c
@@ -156,16 +156,16 @@ shnbsd_regset_from_core_section (struct gdbarch *gdbarch,
}
void
-shnbsd_supply_reg (char *regs, int regnum)
+shnbsd_supply_reg (struct regcache *regcache, const char *regs, int regnum)
{
- shnbsd_supply_gregset (&shnbsd_gregset, current_regcache, regnum,
+ shnbsd_supply_gregset (&shnbsd_gregset, regcache, regnum,
regs, SHNBSD_SIZEOF_GREGS);
}
void
-shnbsd_fill_reg (char *regs, int regnum)
+shnbsd_fill_reg (const struct regcache *regcache, char *regs, int regnum)
{
- shnbsd_collect_gregset (&shnbsd_gregset, current_regcache, regnum,
+ shnbsd_collect_gregset (&shnbsd_gregset, regcache, regnum,
regs, SHNBSD_SIZEOF_GREGS);
}