PR binutils/4801
authorNick Clifton <nickc@redhat.com>
Thu, 19 Jul 2007 16:23:47 +0000 (16:23 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 19 Jul 2007 16:23:47 +0000 (16:23 +0000)
* maxq-dis.c (get_reg_name): Fix the scan of the mem_access_syntax_table.

opcodes/ChangeLog
opcodes/maxq-dis.c

index 88261056c91516d43ebf83ca4764e43c0a0b0399..d8c9002b6ab27fb59c1ba1180065031c878105c7 100644 (file)
@@ -1,3 +1,9 @@
+2007-07-19  Nick Clifton  <nickc@redhat.com>
+
+       PR binutils/4801
+       * maxq-dis.c (get_reg_name): Fix the scan of the
+       mem_access_syntax_table.
+
 2007-07-16  H.J. Lu  <hongjiu.lu@intel.com>
 
        * i386-dis.c (EMq): Removed.
index b4c4992cfd5d25b52991a2e825a894b31c17c6c1..d9977ea30677bdce5db8241509c01951386224c0 100644 (file)
@@ -182,7 +182,7 @@ get_reg_name (unsigned char reg_code, type1 arg_pos)
       if (reg_code == mem_acc->opcode)
        {
          for (syntax = mem_access_syntax_table;
-              mem_access_syntax_table != NULL || mem_access_syntax_table->name;
+              syntax != NULL && syntax->name;
               ++syntax)
            if (!strcmp (mem_acc->name, syntax->name))
              {