src/share/vm/runtime/frame.hpp

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

*** 66,75 **** --- 66,84 ---- public: // Constructors frame(); + #ifndef PRODUCT + // This is a generic constructor which is only used by pns() in debug.cpp. + // pns (i.e. print native stack) uses this constructor to create a starting + // frame for stack walking. The implementation of this constructor is platform + // dependent (i.e. SPARC doesn't need an 'fp' argument an will ignore it) but + // we want to keep the signature generic because pns() is shared code. + frame(void* sp, void* fp, void* pc); + #endif + // Accessors // pc: Returns the pc at which this frame will continue normally. // It must point at the beginning of the next instruction to execute. address pc() const { return _pc; }