diff options
author | Nick Clifton <nickc@redhat.com> | 2007-07-19 16:23:47 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2007-07-19 16:23:47 +0000 |
commit | c908d778a723d69e9e6edc9bcc4176296a0c0b9b (patch) | |
tree | 2f0df97bb559657dd4490923cd195b2d4f90cede /opcodes/maxq-dis.c | |
parent | 0e51e5553c649fbde45e5b60bd56cb025cedfabd (diff) | |
download | gdb-c908d778a723d69e9e6edc9bcc4176296a0c0b9b.zip gdb-c908d778a723d69e9e6edc9bcc4176296a0c0b9b.tar.gz gdb-c908d778a723d69e9e6edc9bcc4176296a0c0b9b.tar.bz2 |
PR binutils/4801
* maxq-dis.c (get_reg_name): Fix the scan of the mem_access_syntax_table.
Diffstat (limited to 'opcodes/maxq-dis.c')
-rw-r--r-- | opcodes/maxq-dis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/maxq-dis.c b/opcodes/maxq-dis.c index b4c4992..d9977ea 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)) { |