[binutils-gdb] x86: fix incorrect indirection
Jan Beulich
jbeulich@sourceware.org
Mon Jun 13 09:06:38 GMT 2022
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8025a164287b588f450686a4b81f6001c33e4269
commit 8025a164287b588f450686a4b81f6001c33e4269
Author: Jan Beulich <jbeulich@suse.com>
Date: Mon Jun 13 11:06:27 2022 +0200
x86: fix incorrect indirection
Commit 384e201e5aec ("x86: properly initialize struct instr_info
instance(s)") was based on an improperly refreshed patch. Correct the
oversight.
Diff:
---
opcodes/i386-dis.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c
index 5d851a269dc..22efc4f50bc 100644
--- a/opcodes/i386-dis.c
+++ b/opcodes/i386-dis.c
@@ -9798,7 +9798,7 @@ print_insn (bfd_vma pc, disassemble_info *info, int intel_syntax)
/* Calculate the number of operands this instruction has. */
op_count = 0;
for (i = 0; i < MAX_OPERANDS; ++i)
- if (*ins->op_out[i] != '\0')
+ if (*ins.op_out[i] != '\0')
++op_count;
/* Calculate the number of spaces to print after the mnemonic. */
More information about the Binutils-cvs
mailing list