OSDN Git Service

* jcf-dump.c (INVOKE): If invokeinterface, print number of args.
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Dec 1998 13:46:42 +0000 (13:46 +0000)
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Dec 1998 13:46:42 +0000 (13:46 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24140 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 3cea6e4..9f95776 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 40ad9d9..f9be7bd 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);