diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-08 12:47:09 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-08 12:47:09 +0000 |
commit | ec7cc0e81672aaea3cc6610ac4989d5728530276 (patch) | |
tree | ca10a00edcdc3b58b23fde817dc391f2b0be2076 /gdb/alpha-linux-nat.c | |
parent | ad010def8947cff19c8fbc2678fbf8b2dc6935e9 (diff) | |
download | gdb-ec7cc0e81672aaea3cc6610ac4989d5728530276.zip gdb-ec7cc0e81672aaea3cc6610ac4989d5728530276.tar.gz gdb-ec7cc0e81672aaea3cc6610ac4989d5728530276.tar.bz2 |
2007-10-08 Markus Deuling <deuling@de.ibm.com>
* alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
gdbarch.
* alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
(alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
(alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
get_frame_arch to get at the current architecture by regcache or by
frame, respectively.
* alpha-nat.c (fetch_osf_core_registers): Likewise.
Diffstat (limited to 'gdb/alpha-linux-nat.c')
-rw-r--r-- | gdb/alpha-linux-nat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/alpha-linux-nat.c b/gdb/alpha-linux-nat.c index 9d9dd97..92e0c46 100644 --- a/gdb/alpha-linux-nat.c +++ b/gdb/alpha-linux-nat.c @@ -84,14 +84,14 @@ fill_fpregset (const struct regcache *regcache, static CORE_ADDR alpha_linux_register_u_offset (struct gdbarch *gdbarch, int regno, int store_p) { - if (regno == gdbarch_pc_regnum (current_gdbarch)) + if (regno == gdbarch_pc_regnum (gdbarch)) return PC; if (regno == ALPHA_UNIQUE_REGNUM) return ALPHA_UNIQUE_PTRACE_ADDR; - if (regno < gdbarch_fp0_regnum (current_gdbarch)) + if (regno < gdbarch_fp0_regnum (gdbarch)) return GPR_BASE + regno; else - return FPR_BASE + regno - gdbarch_fp0_regnum (current_gdbarch); + return FPR_BASE + regno - gdbarch_fp0_regnum (gdbarch); } void _initialialize_alpha_linux_nat (void); |