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

* arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
	to get at the current architecture by regcache.
This commit is contained in:
Ulrich Weigand 2007-10-30 21:41:21 +00:00
parent 600d293e5f
commit a6f7e8387e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-10-30 Markus Deuling <deuling@de.ibm.com>
* arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
to get at the current architecture by regcache.
2007-10-30 Markus Deuling <deuling@de.ibm.com>
* alphabsd-nat.c (alphabsd_fetch_inferior_registers)

View File

@ -392,7 +392,7 @@ arm_linux_supply_gregset (const struct regset *regset,
reg_pc = extract_unsigned_integer (gregs
+ INT_REGISTER_SIZE * ARM_PC_REGNUM,
INT_REGISTER_SIZE);
reg_pc = gdbarch_addr_bits_remove (current_gdbarch, reg_pc);
reg_pc = gdbarch_addr_bits_remove (get_regcache_arch (regcache), reg_pc);
store_unsigned_integer (pc_buf, INT_REGISTER_SIZE, reg_pc);
regcache_raw_supply (regcache, ARM_PC_REGNUM, pc_buf);
}