From e150acc7781b40a0932ac71d27d4f222f3b35513 Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Thu, 25 Jan 2007 20:17:26 +0000 Subject: [PATCH] 2007-01-25 Paul Brook gdb/ * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error. --- gdb/ChangeLog | 4 ++++ gdb/arm-tdep.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b3790b8..49c1a89 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2007-01-25 Paul Brook + + * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error. + 2007-01-24 Jim Blandy * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index ccee2f4..f254876 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); -- 2.7.4