aboutsummaryrefslogtreecommitdiff
path: root/gdb/mipsnbsd-nat.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-10-10 17:04:38 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-10-10 17:04:38 +0000
commit2eb4d78bfd092cb2cf360e679bf8dcd7d212764a (patch)
tree288fb4bc4ece2130f6baddc2e400c95a174b8c2b /gdb/mipsnbsd-nat.c
parent72a155b44d8601da263e2d4be0fe107a4d1e7f23 (diff)
downloadgdb-2eb4d78bfd092cb2cf360e679bf8dcd7d212764a.zip
gdb-2eb4d78bfd092cb2cf360e679bf8dcd7d212764a.tar.gz
gdb-2eb4d78bfd092cb2cf360e679bf8dcd7d212764a.tar.bz2
2007-10-10 Markus Deuling <deuling@de.ibm.com>
* remote-mips.c (mips_wait, mips_fetch_registers) (mips_store_registers): Use get_regcache_arch to get at the current architecture by regcache. * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg) (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to get at the current architecture by regcache. (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current architecture by frame_info. * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers) (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at the current architecture by regcache. * mips-linux-tdep.c (mips_linux_get_longjmp_target) (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init) (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the current architecture by frame_info. (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset) (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg) (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset) (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to get at the current architecture by regcache. * mips-linux-nat.c (mips_linux_register_addr) (mips64_linux_register_addr): Replace current_gdbarch by gdbarch. (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset) (mips64_linux_regsets_fetch_registers) (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at the current architecture by regcache. * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to get at the current architecture by frame_info.
Diffstat (limited to 'gdb/mipsnbsd-nat.c')
-rw-r--r--gdb/mipsnbsd-nat.c4
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;