src/cpu/sparc/vm/frame_sparc.cpp
Print this page
rev 7023 : 8058345: Refactor native stack printing from vmError.cpp to debug.cpp to make it available in gdb as well
Summary: Also fix stack trace on x86 to enable walking of runtime stubs and native wrappers
@@ -417,10 +417,27 @@
_deopt_state = not_deoptimized;
}
}
}
+#ifndef PRODUCT
+// This is a generic constructor which is only used by pns() in debug.cpp.
+frame::frame(void* sp, void* fp, void* pc) {
+ _sp = (intptr_t*)sp;
+ _younger_sp = NULL;
+ _pc = (address)pc;
+ _sp_adjustment_by_callee = 0;
+ if (_pc != NULL) {
+ _cb = CodeCache::find_blob(_pc);
+ }
+ else {
+ _cb == NULL;
+ }
+ _deopt_state = unknown;
+}
+#endif
+
bool frame::is_interpreted_frame() const {
return Interpreter::contains(pc());
}
// sender_sp