hotspot/src/share/vm/utilities/debug.cpp
changeset 9437 9981851b4b8c
parent 8921 14bfe81f2a9d
child 10565 dc90c239f4ec
--- a/hotspot/src/share/vm/utilities/debug.cpp	Mon May 02 10:51:36 2011 -0700
+++ b/hotspot/src/share/vm/utilities/debug.cpp	Mon May 02 18:53:37 2011 -0700
@@ -469,6 +469,7 @@
 extern "C" void pp(void* p) {
   Command c("pp");
   FlagSetting fl(PrintVMMessages, true);
+  FlagSetting f2(DisplayVMOutput, true);
   if (Universe::heap()->is_in(p)) {
     oop obj = oop(p);
     obj->print();
@@ -507,6 +508,17 @@
 
 }
 
+extern "C" void pfl() {
+  // print frame layout
+  Command c("pfl");
+  JavaThread* p = JavaThread::active();
+  tty->print(" for thread: ");
+  p->print();
+  tty->cr();
+  if (p->has_last_Java_frame()) {
+    p->print_frame_layout();
+  }
+}
 
 extern "C" void psf() { // print stack frames
   {