From: Maciej W. Rozycki Date: Tue, 6 Dec 2011 23:36:58 +0000 (+0000) Subject: * mips-tdep.c (deal_with_atomic_sequence): Fix the handling X-Git-Tag: gdb_7_4-branchpoint~68 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=754d7c78609ee214e5349370cad194e1240b95db;p=thirdparty%2Fbinutils-gdb.git * mips-tdep.c (deal_with_atomic_sequence): Fix the handling of BLTZ* and BGEZ* instructions. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 03ab8808bdc..39f8ca0d6e9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-12-06 Maciej W. Rozycki + + * mips-tdep.c (deal_with_atomic_sequence): Fix the handling + of BLTZ* and BGEZ* instructions. + 2011-12-06 Maciej W. Rozycki * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 2e2383664f4..4f1c940d9f4 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -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 */