This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gcjx] Patch: FYI: add vtable debug code


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]