PR binutils/4801

* maxq-dis.c (get_reg_name): Fix the scan of the mem_access_syntax_table.
This commit is contained in:
Nick Clifton 2007-07-19 16:23:47 +00:00
parent 0e51e5553c
commit c908d778a7
2 changed files with 7 additions and 1 deletions

View 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.

View 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))
{