]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/sparc-nat.c
* target.h (struct regcache): Add forward declaration.
[thirdparty/binutils-gdb.git] / gdb / sparc-nat.c
index 7125fc448d532d9d404cb7764bbe9ed1952acab2..268f868aa460ad58e3944c133f934a4d3c131da4 100644 (file)
@@ -135,9 +135,8 @@ sparc32_fpregset_supplies_p (int regnum)
    for all registers (including the floating-point registers).  */
 
 void
-fetch_inferior_registers (int regnum)
+fetch_inferior_registers (struct regcache *regcache, int regnum)
 {
-  struct regcache *regcache = current_regcache;
   int pid;
 
   /* NOTE: cagney/2002-12-03: This code assumes that the currently
@@ -187,9 +186,8 @@ fetch_inferior_registers (int regnum)
 }
 
 void
-store_inferior_registers (int regnum)
+store_inferior_registers (struct regcache *regcache, int regnum)
 {
-  struct regcache *regcache = current_regcache;
   int pid;
 
   /* NOTE: cagney/2002-12-02: See comment in fetch_inferior_registers