From: Ulrich Weigand Date: Tue, 30 Oct 2007 21:40:23 +0000 (+0000) Subject: 2007-10-30 Markus Deuling X-Git-Tag: sid-snapshot-20071101~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=600d293e5fc14eb1feb984dd41c9f144b280fe31;p=platform%2Fupstream%2Fbinutils.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0730139..b9de792 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 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 gdbarch. diff --git a/gdb/alphabsd-nat.c b/gdb/alphabsd-nat.c index 1f7f62f..a166691 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;