2007-08-01 Michael Snyder <msnyder@access-company.com>
authorMichael Snyder <msnyder@vmware.com>
Thu, 2 Aug 2007 00:40:02 +0000 (00:40 +0000)
committerMichael Snyder <msnyder@vmware.com>
Thu, 2 Aug 2007 00:40:02 +0000 (00:40 +0000)
* i386-dis.c (print_insn): Guard against NULL.

opcodes/ChangeLog
opcodes/i386-dis.c

index 671616f0541520d5fd4404af75231d2677a790d4..48d08df959fea2fce81725064b09ad84b3e9d17b 100644 (file)
@@ -1,3 +1,7 @@
+2007-08-01  Michael Snyder  <msnyder@access-company.com>
+
+       * i386-dis.c (print_insn): Guard against NULL.
+
 2007-07-29  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR binutils/4834
index 4e036f79c5f940ab34192a83d67b051f70a6ae2a..4058dce8792fa5e042012a6c67c6971d85c2d86f 100644 (file)
@@ -3782,7 +3782,7 @@ print_insn (bfd_vma pc, disassemble_info *info)
            }
        }
 
-      if (putop (dp->name, sizeflag) == 0)
+      if (dp->name != NULL && putop (dp->name, sizeflag) == 0)
         {
          for (i = 0; i < MAX_OPERANDS; ++i)
            {