2007-01-25 Paul Brook <paul@codesourcery.com>
authorPaul Brook <paul@codesourcery.com>
Thu, 25 Jan 2007 20:17:26 +0000 (20:17 +0000)
committerPaul Brook <paul@codesourcery.com>
Thu, 25 Jan 2007 20:17:26 +0000 (20:17 +0000)
gdb/
* arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.

gdb/ChangeLog
gdb/arm-tdep.c

index b3790b8..49c1a89 100644 (file)
@@ -1,3 +1,7 @@
+2007-01-25  Paul Brook  <paul@codesourcery.com>
+
+       * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
+
 2007-01-24  Jim Blandy  <jimb@codesourcery.com>
 
        * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
index ccee2f4..f254876 100644 (file)
@@ -1623,8 +1623,8 @@ arm_get_next_pc (CORE_ADDR pc)
              error (_("Invalid update to pc in instruction"));
 
            /* BX <reg>, BLX <reg> */
-           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);