aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-08-02 00:40:02 +0000
committerMichael Snyder <msnyder@vmware.com>2007-08-02 00:40:02 +0000
commit7a3c21c92f0369b5d18c5c76dc4ba61dbb1f8dd2 (patch)
tree198f84fa07d0c8a1040b13b4911fb10423a82b79 /opcodes
parentb49412aab85ddf35d081d8332e07b453812117a8 (diff)
downloadgdb-7a3c21c92f0369b5d18c5c76dc4ba61dbb1f8dd2.zip
gdb-7a3c21c92f0369b5d18c5c76dc4ba61dbb1f8dd2.tar.gz
gdb-7a3c21c92f0369b5d18c5c76dc4ba61dbb1f8dd2.tar.bz2
2007-08-01 Michael Snyder <msnyder@access-company.com>
* i386-dis.c (print_insn): Guard against NULL.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog4
-rw-r--r--opcodes/i386-dis.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 671616f..48d08df 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -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
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c
index 4e036f7..4058dce 100644
--- a/opcodes/i386-dis.c
+++ b/opcodes/i386-dis.c
@@ -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)
{