This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gcjx] Patch: FYI: add vtable debug code
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 07 Mar 2005 19:34:30 -0700
- Subject: [gcjx] Patch: FYI: add vtable debug code
- Reply-to: tromey at redhat dot com
I'm checking this in on the gcjx branch.
This adds some debugging code to vtable layout.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* aot/aotclass.cc (lay_out_vtable): Added debug code.
Index: aot/aotclass.cc
===================================================================
RCS file: /cvs/gcc/gcc/gcjx/aot/Attic/aotclass.cc,v
retrieving revision 1.1.2.4
diff -u -r1.1.2.4 aotclass.cc
--- aot/aotclass.cc 8 Mar 2005 00:22:43 -0000 1.1.2.4
+++ aot/aotclass.cc 8 Mar 2005 02:36:22 -0000
@@ -98,6 +98,15 @@
vtable.push_back ((*i).get ());
}
+
+#ifdef DEBUG_VTABLE
+ std::cerr << "=== " << klass->get_fully_qualified_name () << std::endl;
+ int n = 0;
+ for (std::vector<model_method *>::const_iterator i = vtable.begin ();
+ i != vtable.end ();
+ ++i, ++n)
+ std::cerr << n << ": " << (*i)->get_pretty_name () << std::endl;
+#endif // DEBUG_VTABLE
}
int