From 600d293e5fc14eb1feb984dd41c9f144b280fe31 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Tue, 30 Oct 2007 21:40:23 +0000 Subject: [PATCH] 2007-10-30 Markus Deuling * alphabsd-nat.c (alphabsd_fetch_inferior_registers) (alphabsd_store_inferior_registers): Use get_regcache_arch to get at the current architecture by regcache. --- gdb/ChangeLog | 6 ++++++ gdb/alphabsd-nat.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 07301396b87..b9de7925525 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2007-10-30 Markus Deuling + + * alphabsd-nat.c (alphabsd_fetch_inferior_registers) + (alphabsd_store_inferior_registers): Use get_regcache_arch to get at + the current architecture by regcache. + 2007-10-30 Markus Deuling * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by diff --git a/gdb/alphabsd-nat.c b/gdb/alphabsd-nat.c index 1f7f62f0588..a166691fd63 100644 --- a/gdb/alphabsd-nat.c +++ b/gdb/alphabsd-nat.c @@ -99,7 +99,7 @@ alphabsd_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; @@ -134,7 +134,7 @@ alphabsd_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; -- 2.30.2