From e150acc7781b40a0932ac71d27d4f222f3b35513 Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Thu, 25 Jan 2007 20:17:26 +0000 Subject: 2007-01-25 Paul Brook gdb/ * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error. --- gdb/arm-tdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/arm-tdep.c') diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index ccee2f4dc62..f254876c0c7 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -1623,8 +1623,8 @@ arm_get_next_pc (CORE_ADDR pc) error (_("Invalid update to pc in instruction")); /* BX , BLX */ - if (bits (this_instr, 4, 28) == 0x12fff1 - || bits (this_instr, 4, 28) == 0x12fff3) + if (bits (this_instr, 4, 27) == 0x12fff1 + || bits (this_instr, 4, 27) == 0x12fff3) { rn = bits (this_instr, 0, 3); result = (rn == 15) ? pc_val + 8 : read_register (rn); -- cgit v1.2.1