From: Maciej W. Rozycki Date: Tue, 6 Dec 2011 23:49:56 +0000 (+0000) Subject: * mips-tdep.c (mips32_next_pc): Fix floating point condition X-Git-Tag: gdb_7_4-2011-12-13-branchpoint~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=040dff2af89622e440699292b0976e14cdf4c0d1;p=thirdparty%2Fbinutils-gdb.git * mips-tdep.c (mips32_next_pc): Fix floating point condition code mask. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 39f8ca0d6e9..8c670869cf3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-12-06 Maciej W. Rozycki + + * mips-tdep.c (mips32_next_pc): Fix floating point condition + code mask. + 2011-12-06 Maciej W. Rozycki * mips-tdep.c (deal_with_atomic_sequence): Fix the handling diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 4f1c940d9f4..bbfd7e9e607 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -1144,7 +1144,7 @@ mips32_next_pc (struct frame_info *frame, CORE_ADDR pc) get_frame_register_signed (frame, mips_regnum (get_frame_arch (frame))-> fp_control_status); - int cond = ((fcrcs >> 24) & 0x0e) | ((fcrcs >> 23) & 0x01); + int cond = ((fcrcs >> 24) & 0xfe) | ((fcrcs >> 23) & 0x01); if (((cond >> cnum) & 0x01) == tf) pc += mips32_relative_offset (inst) + 4;