From: Ulrich Weigand Date: Tue, 30 Oct 2007 21:50:46 +0000 (+0000) Subject: 2007-10-30 Markus Deuling X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8f4f3fbe31e52ff8d866167c822bc8ab0815c9ca;p=binutils-gdb.git 2007-10-30 Markus Deuling * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at the current architecture by regcache. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f8aa344858a..3ae908c37b7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-10-30 Markus Deuling + + * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at + the current architecture by regcache. + 2007-10-30 Markus Deuling * corelow.c (get_core_registers): Use get_regcache_arch to get at the diff --git a/gdb/core-regset.c b/gdb/core-regset.c index 6d7f546b541..1e539bd7412 100644 --- a/gdb/core-regset.c +++ b/gdb/core-regset.c @@ -85,7 +85,7 @@ fetch_core_registers (struct regcache *regcache, else { memcpy (&fpregset, core_reg_sect, sizeof (fpregset)); - if (gdbarch_fp0_regnum (current_gdbarch) >= 0) + if (gdbarch_fp0_regnum (get_regcache_arch (regcache)) >= 0) supply_fpregset (regcache, (const gdb_fpregset_t *) fpregset_p); } break;