* mips-tdep.c (deal_with_atomic_sequence): Fix the handling
authorMaciej W. Rozycki <macro@linux-mips.org>
Tue, 6 Dec 2011 23:36:58 +0000 (23:36 +0000)
committerMaciej W. Rozycki <macro@linux-mips.org>
Tue, 6 Dec 2011 23:36:58 +0000 (23:36 +0000)
of BLTZ* and BGEZ* instructions.

gdb/ChangeLog
gdb/mips-tdep.c

index 03ab8808bdcadda4f7131ca5c742e75de56f44cf..39f8ca0d6e94d19e6f6ef3e9a058caa07a88c78e 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
+       of BLTZ* and BGEZ* instructions.
+
 2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
 
        * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
index 2e2383664f47a58f4770a2d852d93beac854568a..4f1c940d9f4d1aa3a3442f53f2f7e55a8c5b3b90 100644 (file)
@@ -2620,7 +2620,7 @@ deal_with_atomic_sequence (struct gdbarch *gdbarch,
            return 0; /* fallback to the standard single-step code.  */
          break;
        case 1: /* REGIMM */
-         is_branch = ((itype_rt (insn) & 0xc0) == 0); /* B{LT,GE}Z* */
+         is_branch = ((itype_rt (insn) & 0xc) == 0); /* B{LT,GE}Z* */
          break;
        case 2: /* J */
        case 3: /* JAL */