From e1e01acdc81f9ddcfda2d4bc64d45468eb59581d Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Tue, 30 Oct 2007 21:43:33 +0000 Subject: [PATCH] 2007-10-30 Markus Deuling * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch. --- gdb/ChangeLog | 4 ++++ gdb/arm-tdep.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 54510e41c19..bae6abedc92 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2007-10-30 Markus Deuling + + * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch. + 2007-10-30 Markus Deuling * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register) diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 82e5a6aa533..190f6a1b625 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -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; -- 2.30.2