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 b3790b80c5a26a65da02b60bf4274f9657f7f793..49c1a8914002d59f3bf690d01cb1f0ee926f4085 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 ccee2f4dc623678ae71cfcc7e15c980788f716cc..f254876c0c78a498352395a8c9e9ea90ee9aa78f 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);