diff options
Diffstat (limited to 'gdb/mips-nbsd-nat.c')
-rw-r--r-- | gdb/mips-nbsd-nat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/mips-nbsd-nat.c b/gdb/mips-nbsd-nat.c index c6e9828..8e19439 100644 --- a/gdb/mips-nbsd-nat.c +++ b/gdb/mips-nbsd-nat.c @@ -44,7 +44,7 @@ mipsnbsd_fetch_inferior_registers (struct target_ops *ops, { pid_t pid = ptid_get_pid (regcache_get_ptid (regcache)); - struct gdbarch *gdbarch = get_regcache_arch (regcache); + struct gdbarch *gdbarch = regcache->arch (); if (regno == -1 || getregs_supplies (gdbarch, regno)) { struct reg regs; @@ -58,7 +58,7 @@ mipsnbsd_fetch_inferior_registers (struct target_ops *ops, } if (regno == -1 - || regno >= gdbarch_fp0_regnum (get_regcache_arch (regcache))) + || regno >= gdbarch_fp0_regnum (regcache->arch ())) { struct fpreg fpregs; @@ -75,7 +75,7 @@ mipsnbsd_store_inferior_registers (struct target_ops *ops, { pid_t pid = ptid_get_pid (regcache_get_ptid (regcache)); - struct gdbarch *gdbarch = get_regcache_arch (regcache); + struct gdbarch *gdbarch = regcache->arch (); if (regno == -1 || getregs_supplies (gdbarch, regno)) { struct reg regs; @@ -93,7 +93,7 @@ mipsnbsd_store_inferior_registers (struct target_ops *ops, } if (regno == -1 - || regno >= gdbarch_fp0_regnum (get_regcache_arch (regcache))) + || regno >= gdbarch_fp0_regnum (regcache->arch ())) { struct fpreg fpregs; |