]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/mipsnbsd-nat.c
2007-10-10 Markus Deuling <deuling@de.ibm.com>
[thirdparty/binutils-gdb.git] / gdb / mipsnbsd-nat.c
index 8c3d726944ec594f2cf4d0d097412c93bf268146..e63c906a53271b03c60ed672f84d5d910eca5184 100644 (file)
@@ -54,7 +54,7 @@ mipsnbsd_fetch_inferior_registers (struct regcache *regcache, int regno)
        return;
     }
 
-  if (regno == -1 || regno >= gdbarch_fp0_regnum (current_gdbarch))
+  if (regno == -1 || regno >= gdbarch_fp0_regnum (get_regcache_arch (regcache)))
     {
       struct fpreg fpregs;
 
@@ -87,7 +87,7 @@ mipsnbsd_store_inferior_registers (struct regcache *regcache, int regno)
        return;
     }
 
-  if (regno == -1 || regno >= gdbarch_fp0_regnum (current_gdbarch))
+  if (regno == -1 || regno >= gdbarch_fp0_regnum (get_regcache_arch (regcache)))
     {
       struct fpreg fpregs;