aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
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
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')
-rw-r--r--gcc/java/ChangeLog4
-rw-r--r--gcc/java/jcf-dump.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 3cea6e4..9f95776 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,7 @@
+Sun Dec 6 13:21:18 1998 Per Bothner <bothner@cygnus.com>
+
+ * jcf-dump.c (INVOKE): If invokeinterface, print number of args.
+
Thu Dec 3 17:11:12 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
* java-tree.h (java_layout_seen_class_methods): New function
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);