2007-10-30 Markus Deuling <deuling@de.ibm.com>
authorUlrich Weigand <uweigand@de.ibm.com>
Tue, 30 Oct 2007 21:43:33 +0000 (21:43 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Tue, 30 Oct 2007 21:43:33 +0000 (21:43 +0000)
* arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.

gdb/ChangeLog
gdb/arm-tdep.c

index 54510e41c1943bfb0e997e31e3cdccbef1b9987a..bae6abedc923d9a46edd061b3d0f1e2d85f27608 100644 (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)
index 82e5a6aa5336ee3c99a3d2ef04b82a7943d254ce..190f6a1b625fc2e75f6d95f22156f6ca19b5078a 100644 (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;