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

* arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
This commit is contained in:
Ulrich Weigand 2007-10-30 21:43:33 +00:00
parent b2cb219a9d
commit e1e01acdc8
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-10-30 Markus Deuling <deuling@de.ibm.com>
* arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
2007-10-30 Markus Deuling <deuling@de.ibm.com>
* armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)

View File

@ -1719,7 +1719,7 @@ arm_get_next_pc (struct frame_info *frame, CORE_ADDR pc)
nextpc = BranchDest (pc, this_instr);
nextpc |= bit (this_instr, 24) << 1;
nextpc = gdbarch_addr_bits_remove (current_gdbarch, nextpc);
nextpc = gdbarch_addr_bits_remove (gdbarch, nextpc);
if (nextpc == pc)
error (_("Infinite loop detected"));
break;