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:
Kartikaya Gupta 2018-01-08 09:23:49 -05:00
parent c6e614c39a
commit d9fc740bc2

View File

@ -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());
}