bug 1100335 - Use OutputDebugString on Windows in js_DumpBacktrace. r=jorendorff

--HG--
extra : rebase_source : 7856d22b24385dc475ce9975da66f3e94ab0b154
This commit is contained in:
Ted Mielczarek 2014-12-17 13:24:57 -05:00
parent 997268ff82
commit 7f8a7ef733

View File

@ -3931,6 +3931,11 @@ js_DumpBacktrace(JSContext *cx)
script, script->pcToOffset(i.pc()));
}
fprintf(stdout, "%s", sprinter.string());
#ifdef XP_WIN32
if (IsDebuggerPresent()) {
OutputDebugStringA(sprinter.string());
}
#endif
}
void