aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jcf-dump.c
diff options
context:
space:
mode:
authorPer Bothner <bothner@cygnus.com>1998-12-06 13:46:42 +0000
committerPer Bothner <bothner@gcc.gnu.org>1998-12-06 05:46:42 -0800
commit0f0d3319174543d8e279715aba3ace2f62f16f59 (patch)
treedc24204ea58c6538c604daf02de8355c85b1395c /gcc/java/jcf-dump.c
parent8962b4b434b2374beac11c952f5ff5e80a6d3860 (diff)
downloadgcc-0f0d3319174543d8e279715aba3ace2f62f16f59.zip
gcc-0f0d3319174543d8e279715aba3ace2f62f16f59.tar.gz
gcc-0f0d3319174543d8e279715aba3ace2f62f16f59.tar.bz2
jcf-dump.c (INVOKE): If invokeinterface, print number of args.
* jcf-dump.c (INVOKE): If invokeinterface, print number of args. From-SVN: r24140
Diffstat (limited to 'gcc/java/jcf-dump.c')
-rw-r--r--gcc/java/jcf-dump.c4
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);