summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-07-19 16:23:47 +0000
committerNick Clifton <nickc@redhat.com>2007-07-19 16:23:47 +0000
commite16e5ffb74e08f1ba0ef53557de7abc98fd64dc0 (patch)
tree9e62b780f9e3f8f3532a96b718d3837ccf19dd32
parenta09041424b27c1f113f78a036f3b6fd6acab8b47 (diff)
downloadbinutils-redhat-e16e5ffb74e08f1ba0ef53557de7abc98fd64dc0.tar.gz
PR binutils/4801
* maxq-dis.c (get_reg_name): Fix the scan of the mem_access_syntax_table.
-rw-r--r--opcodes/ChangeLog6
-rw-r--r--opcodes/maxq-dis.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 88261056c9..d8c9002b6a 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -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.
diff --git a/opcodes/maxq-dis.c b/opcodes/maxq-dis.c
index b4c4992cfd..d9977ea306 100644
--- a/opcodes/maxq-dis.c
+++ b/opcodes/maxq-dis.c
@@ -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))
{