From 4069ebbe47cb50bd157f7a174dda1c98c1e04a24 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Fri, 26 Feb 2010 20:46:00 +0000 Subject: [PATCH] * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode. --- gdb/ChangeLog | 4 ++++ gdb/arm-tdep.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 554b743ffbc..1e16950a14d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2010-02-26 Daniel Jacobowitz + + * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode. + 2010-02-26 Pedro Alves * NEWS: Add "New targets" section, and mention ARM Symbian diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 524e4ace2c0..b932c81e0b2 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -2503,7 +2503,7 @@ thumb_get_next_pc (struct frame_info *frame, CORE_ADDR pc) nextpc = get_frame_register_unsigned (frame, ARM_LR_REGNUM); nextpc -= inst2 & 0x00ff; } - else if ((inst2 & 0xd000) == 0xc000 && (inst1 & 0x0380) != 0x0380) + else if ((inst2 & 0xd000) == 0x8000 && (inst1 & 0x0380) != 0x0380) { /* Conditional branch. */ if (condition_true (bits (inst1, 6, 9), status)) -- 2.30.2