Bug 1252889: On Windows use a 10 second pause instead of trying to invoke the JIT debugger with MOZ_DEBUG_CHILD_PROCESS. r=jimm

This commit is contained in:
Bob Owen 2016-03-03 11:09:25 +00:00
parent 02d06252fa
commit 3a8e10a239

View File

@ -477,15 +477,12 @@ XRE_InitChildProcess(int aArgc,
#endif
if (PR_GetEnv("MOZ_DEBUG_CHILD_PROCESS")) {
printf_stderr("\n\nCHILDCHILDCHILDCHILD\n debug me @ %d\n\n",
base::GetCurrentProcId());
#ifdef OS_POSIX
printf("\n\nCHILDCHILDCHILDCHILD\n debug me @ %d\n\n", getpid());
sleep(30);
sleep(30);
#elif defined(OS_WIN)
// Windows has a decent JIT debugging story, so NS_DebugBreak does the
// right thing.
NS_DebugBreak(NS_DEBUG_BREAK,
"Invoking NS_DebugBreak() to debug child process",
nullptr, __FILE__, __LINE__);
::Sleep(10000);
#endif
}