Make it easier to get JS stack crawls from gdb
authordanno@chromium.org <danno@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 29 Jul 2013 11:56:45 +0000 (11:56 +0000)
committerdanno@chromium.org <danno@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 29 Jul 2013 11:56:45 +0000 (11:56 +0000)
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

src/isolate.cc
src/isolate.h

index ccd6f28..058ee8a 100644 (file)
@@ -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_++;
index b43e1d4..51f307a 100644 (file)
@@ -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,