creport: Try to take screenshot of application crashes on 9.x+

This commit is contained in:
Michael Scire 2020-04-22 14:50:16 -07:00
parent 93e0c9194d
commit 6ac1ff6f24
9 changed files with 201 additions and 23 deletions

View file

@ -102,6 +102,9 @@ int main(int argc, char **argv) {
/* Parse crashed PID. */
os::ProcessId crashed_pid = creport::ParseProcessIdArgument(argv[0]);
/* Initialize the crash report. */
g_crash_report.Initialize();
/* Try to debug the crashed process. */
g_crash_report.BuildReport(crashed_pid, argv[1][0] == '1');
if (!g_crash_report.IsComplete()) {