From: Ulrich Weigand Date: Tue, 30 Oct 2007 21:46:25 +0000 (+0000) Subject: 2007-10-30 Markus Deuling X-Git-Tag: sid-snapshot-20071101~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=13b8769fe05318f4ed96b2b640a64bd5be938944;p=thirdparty%2Fbinutils-gdb.git 2007-10-30 Markus Deuling * corelow.c (get_core_registers): Use get_regcache_arch to get at the current architecture by regcache. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bc7c73ffc58..f8aa344858a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-10-30 Markus Deuling + + * corelow.c (get_core_registers): Use get_regcache_arch to get at the + current architecture by regcache. + 2007-10-30 Markus Deuling * bsd-uthread.c (bsd_uthread_fetch_registers) diff --git a/gdb/corelow.c b/gdb/corelow.c index 1b963caa197..07be3f43773 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c @@ -503,7 +503,7 @@ get_core_registers (struct regcache *regcache, int regno) ".reg-ppc-vmx", 3, "ppc Altivec", 0); /* Supply dummy value for all registers not found in the core. */ - for (i = 0; i < gdbarch_num_regs (current_gdbarch); i++) + for (i = 0; i < gdbarch_num_regs (get_regcache_arch (regcache)); i++) if (!regcache_valid_p (regcache, i)) regcache_raw_supply (regcache, i, NULL); }