This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[BC] Patch: FYI: make verifier debug code work
- From: Tom Tromey <tromey at redhat dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Cc: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 26 Oct 2004 12:14:49 -0600
- Subject: [BC] Patch: FYI: make verifier debug code work
- Reply-to: tromey at redhat dot com
I'm checking this in on the BC branch. This removes the syntax errors
from the debug code in the verifier. I needed to use that today as
something fundamental is not working, the verifier is in an infinite
loop.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* verify-impl.c (type_print): Renamed from print. Now static and
takes an argument.
(debug_print_state): Use type_print.
Index: verify-impl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/Attic/verify-impl.c,v
retrieving revision 1.1.2.13
diff -u -r1.1.2.13 verify-impl.c
--- verify-impl.c 20 Oct 2004 22:54:34 -0000 1.1.2.13
+++ verify-impl.c 26 Oct 2004 18:14:11 -0000
@@ -9,7 +9,7 @@
/* Written by Tom Tromey <tromey@redhat.com> */
/* Uncomment this to enable debugging output. */
-/* #define VERIFY_DEBUG */
+/* #define VERIFY_DEBUG */
#include "config.h"
@@ -975,11 +975,11 @@
}
#ifdef VERIFY_DEBUG
-void
-print (void)
+static void
+type_print (type *t)
{
char c = '?';
- switch (key)
+ switch (t->key)
{
case boolean_type: c = 'Z'; break;
case byte_type: c = 'B'; break;
@@ -1292,13 +1292,13 @@
debug_print ("%s [%4d]: [stack] ", leader, pc);
int i;
for (i = 0; i < s->stacktop; ++i)
- s->stack[i].print ();
+ type_print (&s->stack[i]);
for (; i < max_stack; ++i)
debug_print (".");
debug_print (" [local] ");
for (i = 0; i < max_locals; ++i)
- s->locals[i].print ();
- debug_print (" | %p\n", this);
+ type_print (&s->locals[i]);
+ debug_print (" | %p\n", s);
}
#else
static void