diff options
Diffstat (limited to 'gcc/java/jcf-dump.c')
-rw-r--r-- | gcc/java/jcf-dump.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/java/jcf-dump.c b/gcc/java/jcf-dump.c index 40ad9d9..f9be7bd 100644 --- a/gcc/java/jcf-dump.c +++ b/gcc/java/jcf-dump.c @@ -976,7 +976,9 @@ DEFUN(disassemble_method, (jcf, byte_ops, len), /* Print operand for invoke opcodes. */ #define INVOKE(OPERAND_TYPE, OPERAND_VALUE) \ fputc (' ', out); print_constant_ref (out, jcf, IMMEDIATE_u2);\ - PC += 2 * OPERAND_VALUE /* for invokeinterface */; + if (OPERAND_VALUE) /* for invokeinterface */ \ + { int nargs = IMMEDIATE_u1; PC++; \ + fprintf (out, " nargs:%d", nargs); } #define OBJECT(OPERAND_TYPE, OPERAND_VALUE) \ fputc (' ', out); print_constant_ref (out, jcf, IMMEDIATE_u2); |