mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1428772 - Report the process type when pausing a child process on startup for debugging. r=froydnj
MozReview-Commit-ID: 3MnhQmukPnZ --HG-- extra : rebase_source : 8ee1e5011eb8edce198ea6195e91c51d76b967e4
This commit is contained in:
parent
c6e614c39a
commit
d9fc740bc2
@ -531,7 +531,8 @@ XRE_InitChildProcess(int aArgc,
|
||||
printf_stderr("Could not allow ptrace from any process.\n");
|
||||
}
|
||||
#endif
|
||||
printf_stderr("\n\nCHILDCHILDCHILDCHILD\n debug me @ %d\n\n",
|
||||
printf_stderr("\n\nCHILDCHILDCHILDCHILD (process type %s)\n debug me @ %d\n\n",
|
||||
XRE_ChildProcessTypeToString(XRE_GetProcessType()),
|
||||
base::GetCurrentProcId());
|
||||
sleep(GetDebugChildPauseTime());
|
||||
}
|
||||
@ -541,7 +542,8 @@ XRE_InitChildProcess(int aArgc,
|
||||
"Invoking NS_DebugBreak() to debug child process",
|
||||
nullptr, __FILE__, __LINE__);
|
||||
} else if (PR_GetEnv("MOZ_DEBUG_CHILD_PAUSE")) {
|
||||
printf_stderr("\n\nCHILDCHILDCHILDCHILD\n debug me @ %d\n\n",
|
||||
printf_stderr("\n\nCHILDCHILDCHILDCHILD (process type %s)\n debug me @ %d\n\n",
|
||||
XRE_ChildProcessTypeToString(XRE_GetProcessType()),
|
||||
base::GetCurrentProcId());
|
||||
::Sleep(GetDebugChildPauseTime());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user