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

* alphabsd-nat.c (alphabsd_fetch_inferior_registers)
	(alphabsd_store_inferior_registers): Use get_regcache_arch to get at
	the current architecture by regcache.
This commit is contained in:
Ulrich Weigand 2007-10-30 21:40:23 +00:00
parent d4a9a8813d
commit 600d293e5f
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2007-10-30 Markus Deuling <deuling@de.ibm.com>
* 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 <deuling@de.ibm.com>
* ada-lang.c (ada_language_arch_info): Replace current_gdbarch by

View File

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