aboutsummaryrefslogtreecommitdiff
path: root/gdb/alpha-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-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-nat.c')
-rw-r--r--gdb/alpha-nat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/alpha-nat.c b/gdb/alpha-nat.c
index 3ec16f2..a229459 100644
--- a/gdb/alpha-nat.c
+++ b/gdb/alpha-nat.c
@@ -49,6 +49,7 @@ fetch_osf_core_registers (struct regcache *regcache,
char *core_reg_sect, unsigned core_reg_size,
int which, CORE_ADDR reg_addr)
{
+ struct gdbarch *gdbarch = get_regcache_arch (regcache);
int regno;
int addr;
int bad_reg = -1;
@@ -87,7 +88,7 @@ fetch_osf_core_registers (struct regcache *regcache,
for (regno = 0; regno < ALPHA_NUM_REGS; regno++)
{
- if (gdbarch_cannot_fetch_register (current_gdbarch, regno))
+ if (gdbarch_cannot_fetch_register (gdbarch, regno))
{
regcache_raw_supply (regcache, regno, NULL);
continue;
@@ -112,7 +113,7 @@ fetch_osf_core_registers (struct regcache *regcache,
if (bad_reg >= 0)
{
error (_("Register %s not found in core file."),
- gdbarch_register_name (current_gdbarch, bad_reg));
+ gdbarch_register_name (gdbarch, bad_reg));
}
}