diff options
Diffstat (limited to 'gdb/mipsnbsd-nat.c')
-rw-r--r-- | gdb/mipsnbsd-nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/mipsnbsd-nat.c b/gdb/mipsnbsd-nat.c index 8c3d726..e63c906 100644 --- a/gdb/mipsnbsd-nat.c +++ b/gdb/mipsnbsd-nat.c @@ -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; |