aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-tdep.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2010-02-26 20:46:00 +0000
committerDaniel Jacobowitz <drow@false.org>2010-02-26 20:46:00 +0000
commit4069ebbe47cb50bd157f7a174dda1c98c1e04a24 (patch)
tree2bafc6e6ce74bfd1d6dade8c51719cf36cc11bda /gdb/arm-tdep.c
parent743d7f19b362ea617cb63269793ae51a59dbbbe1 (diff)
downloadgdb-4069ebbe47cb50bd157f7a174dda1c98c1e04a24.zip
gdb-4069ebbe47cb50bd157f7a174dda1c98c1e04a24.tar.gz
gdb-4069ebbe47cb50bd157f7a174dda1c98c1e04a24.tar.bz2
* arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r--gdb/arm-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 524e4ac..b932c81 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))