Crashpad: Explicitly enable crash_handler only for main app

That is the default, but this enables us to tweak the behavior in the
crash_handler correspondingly.

Change-Id: Ia580a580d4fb9ec8cfe90a3cb7c10471d86f3f41
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Eike Ziller
2024-12-18 12:57:45 +01:00
parent 0ee72f78f1
commit a72a3c0730

View File

@@ -444,6 +444,7 @@ void startCrashpad(const AppInfo &appInfo, bool crashReportingEnabled)
annotations["sha1"] = Core::Constants::IDE_REVISION_STR; annotations["sha1"] = Core::Constants::IDE_REVISION_STR;
#endif #endif
CrashpadInfo::GetCrashpadInfo()->set_crashpad_handler_behavior(crashpad::TriState::kEnabled);
if (HostOsInfo::isWindowsHost()) { if (HostOsInfo::isWindowsHost()) {
// reduces the size of crash reports, which can be large on Windows // reduces the size of crash reports, which can be large on Windows
CrashpadInfo::GetCrashpadInfo() CrashpadInfo::GetCrashpadInfo()