OSDN Git Service

2007-10-30 Markus Deuling <deuling@de.ibm.com>
authoruweigand <uweigand>
Tue, 30 Oct 2007 21:43:33 +0000 (21:43 +0000)
committeruweigand <uweigand>
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 54510e4..bae6abe 100644 (file)
@@ -1,5 +1,9 @@
 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)
        (store_regs): Use get_regcache_arch to get at the current architecture
        by regcache.
index 82e5a6a..190f6a1 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;