aboutsummaryrefslogtreecommitdiff
path: root/gdb/alpha-linux-nat.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-10-08 12:47:09 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-10-08 12:47:09 +0000
commitec7cc0e81672aaea3cc6610ac4989d5728530276 (patch)
treeca10a00edcdc3b58b23fde817dc391f2b0be2076 /gdb/alpha-linux-nat.c
parentad010def8947cff19c8fbc2678fbf8b2dc6935e9 (diff)
downloadgdb-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.c6
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);