mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
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:
parent
02d06252fa
commit
3a8e10a239
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user