Commit: RX: Fix disassembly of erroneous conditionals

Nick Clifton nickc@redhat.com
Mon Nov 16 14:25:00 GMT 2015


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[] =



More information about the Binutils mailing list