From 2eb4d78bfd092cb2cf360e679bf8dcd7d212764a Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Wed, 10 Oct 2007 17:04:38 +0000 Subject: 2007-10-10 Markus Deuling * 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. --- gdb/mipsnbsd-nat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/mipsnbsd-nat.c') 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; -- cgit v1.1