aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips64obsd-tdep.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/mips64obsd-tdep.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/mips64obsd-tdep.c')
-rw-r--r--gdb/mips64obsd-tdep.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/mips64obsd-tdep.c b/gdb/mips64obsd-tdep.c
index ccc4d5b..cc59634 100644
--- a/gdb/mips64obsd-tdep.c
+++ b/gdb/mips64obsd-tdep.c
@@ -91,30 +91,30 @@ mips64obsd_sigframe_init (const struct tramp_frame *self,
fixed offset in the signal frame. */
sp = frame_unwind_register_signed (next_frame,
MIPS_SP_REGNUM
- + gdbarch_num_regs (current_gdbarch));
+ + gdbarch_num_regs (gdbarch));
sigcontext_addr = sp + 32;
/* PC. */
regnum = mips_regnum (gdbarch)->pc;
trad_frame_set_reg_addr (cache,
- regnum + gdbarch_num_regs (current_gdbarch),
+ regnum + gdbarch_num_regs (gdbarch),
sigcontext_addr + 16);
/* GPRs. */
for (regnum = MIPS_AT_REGNUM, addr = sigcontext_addr + 32;
regnum <= MIPS_RA_REGNUM; regnum++, addr += 8)
trad_frame_set_reg_addr (cache,
- regnum + gdbarch_num_regs (current_gdbarch),
+ regnum + gdbarch_num_regs (gdbarch),
addr);
/* HI and LO. */
regnum = mips_regnum (gdbarch)->lo;
trad_frame_set_reg_addr (cache,
- regnum + gdbarch_num_regs (current_gdbarch),
+ regnum + gdbarch_num_regs (gdbarch),
sigcontext_addr + 280);
regnum = mips_regnum (gdbarch)->hi;
trad_frame_set_reg_addr (cache,
- regnum + gdbarch_num_regs (current_gdbarch),
+ regnum + gdbarch_num_regs (gdbarch),
sigcontext_addr + 288);
/* TODO: Handle the floating-point registers. */