Commit 504f94fc authored by danno@chromium.org's avatar danno@chromium.org

Make it easier to get JS stack crawls from gdb

R=bmeurer@chromium.org

Review URL: https://codereview.chromium.org/21060002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15930 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent e9cc78af
......@@ -844,6 +844,11 @@ Handle<JSArray> Isolate::CaptureCurrentStackTrace(
}
void Isolate::PrintStack() {
PrintStack(stdout);
}
void Isolate::PrintStack(FILE* out) {
if (stack_trace_nesting_level_ == 0) {
stack_trace_nesting_level_++;
......
......@@ -737,6 +737,7 @@ class Isolate {
void PrintStackTrace(FILE* out, char* thread_data);
void PrintStack(StringStream* accumulator);
void PrintStack(FILE* out);
void PrintStack();
Handle<String> StackTraceString();
NO_INLINE(void PushStackTraceAndDie(unsigned int magic,
Object* object,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment