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

* core-regset.c (fetch_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:50:46 +00:00
parent 13b8769fe0
commit 8f4f3fbe31
2 changed files with 6 additions and 1 deletions

View File

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