jcf-dump.c (INVOKE): If invokeinterface, print number of args.
authorPer Bothner <bothner@cygnus.com>
Sun, 6 Dec 1998 13:46:42 +0000 (13:46 +0000)
committerPer Bothner <bothner@gcc.gnu.org>
Sun, 6 Dec 1998 13:46:42 +0000 (05:46 -0800)
* jcf-dump.c (INVOKE):  If invokeinterface, print number of args.

From-SVN: r24140

gcc/java/ChangeLog
gcc/java/jcf-dump.c

index 3cea6e46de64b8de9c9c682ce26137a44e031701..9f957761ae04258369615c77dd31bacbf9cc2cab 100644 (file)
@@ -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
index 40ad9d9afc6a9d097e5216b3b3d9cb7d2b8b8d58..f9be7bdf28f266170dae9da9dccb4c353a54463c 100644 (file)
@@ -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);