This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Commit: RX: Fix disassembly of erroneous conditionals
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sourceware dot org
- Date: Mon, 16 Nov 2015 14:25:25 +0000
- Subject: Commit: RX: Fix disassembly of erroneous conditionals
- Authentication-results: sourceware.org; auth=none
Hi Guys,
The RX disassembler used to display conditional instructions with
invalid condition types as if they were valid instructions. I am
applying the patch below to fix this.
Cheers
Nick
opcodes/ChangeLog
2015-11-16 Nick Clifton <nickc@redhat.com>
* rx-dis.c (condition_names): Replace always and never with
invalid, since the always/never conditions can never be legal.
Index: opcodes/rx-dis.c
===================================================================
RCS file: /cvs/cvsfiles/gnupro/opcodes/rx-dis.c,v
retrieving revision 1.5.20.1
diff -u -3 -p -r1.5.20.1 rx-dis.c
--- opcodes/rx-dis.c 22 Sep 2015 15:43:34 -0000 1.5.20.1
+++ opcodes/rx-dis.c 3 Nov 2015 13:07:40 -0000
@@ -74,7 +74,7 @@ static char const * condition_names[] =
{
/* condition codes */
"eq", "ne", "c", "nc", "gtu", "leu", "pz", "n",
- "ge", "lt", "gt", "le", "o", "no", "always", "never"
+ "ge", "lt", "gt", "le", "o", "no", "<invalid>", "<invalid>"
};
static const char * flag_names[] =