2007-10-30 Markus Deuling <deuling@de.ibm.com>

* corelow.c (get_core_registers): Use get_regcache_arch to get at the
	current architecture by regcache.
This commit is contained in:
Ulrich Weigand 2007-10-30 21:46:25 +00:00
parent 27524c05b8
commit 13b8769fe0
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-10-30 Markus Deuling <deuling@de.ibm.com>
* corelow.c (get_core_registers): Use get_regcache_arch to get at the
current architecture by regcache.
2007-10-30 Markus Deuling <deuling@de.ibm.com>
* bsd-uthread.c (bsd_uthread_fetch_registers)

View File

@ -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);
}