Bug 1101083 - js_DumpBacktrace should dump all frames (r=bholley,nbp)
authorBill McCloskey <wmccloskey@mozilla.com>
Tue, 18 Nov 2014 21:45:01 -0800
changeset 240723 d99caaf9ab8c61a8999ca04bcb3d521bf59c4b0e
parent 240722 a930c7045988602cb3e19e16db83b1d6ae4fccc3
child 240724 8c37c5083952ab0b0a645f42c09f46c2abaed07c
push id4311
push userraliiev@mozilla.com
push dateMon, 12 Jan 2015 19:37:41 +0000
treeherdermozilla-beta@150c9fed433b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbholley, nbp
bugs1101083
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1101083 - js_DumpBacktrace should dump all frames (r=bholley,nbp)
js/src/jsobj.cpp
--- a/js/src/jsobj.cpp
+++ b/js/src/jsobj.cpp
@@ -4148,17 +4148,17 @@ js_DumpInterpreterFrame(JSContext *cx, I
 #endif /* DEBUG */
 
 JS_FRIEND_API(void)
 js_DumpBacktrace(JSContext *cx)
 {
     Sprinter sprinter(cx);
     sprinter.init();
     size_t depth = 0;
-    for (ScriptFrameIter i(cx); !i.done(); ++i, ++depth) {
+    for (AllFramesIter i(cx); !i.done(); ++i, ++depth) {
         const char *filename = JS_GetScriptFilename(i.script());
         unsigned line = PCToLineNumber(i.script(), i.pc());
         JSScript *script = i.script();
         sprinter.printf("#%d %14p   %s:%d (%p @ %d)\n",
                         depth, (i.isJit() ? 0 : i.interpFrame()), filename, line,
                         script, script->pcToOffset(i.pc()));
     }
     fprintf(stdout, "%s", sprinter.string());