From 8c7dc41be3c19540a94fec45c310e19265df2539 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Wed, 28 Dec 2016 23:57:36 +0100 Subject: add a crashreporter entry when we start the shutdown This will help us identify shutdown related crashes. Reviewed-on: https://gerrit.libreoffice.org/32485 Tested-by: Jenkins Reviewed-by: Markus Mohrhard Conflicts: framework/source/services/desktop.cxx Change-Id: Id09c3dfdc94c430d5dcb2aebb017f17db80f17e5 Reviewed-on: https://gerrit.libreoffice.org/32488 Tested-by: Jenkins Reviewed-by: Michael Meeks --- framework/Library_fwk.mk | 2 ++ framework/source/services/desktop.cxx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/framework/Library_fwk.mk b/framework/Library_fwk.mk index ab6518ac076b..7d610dfdeebb 100644 --- a/framework/Library_fwk.mk +++ b/framework/Library_fwk.mk @@ -41,6 +41,8 @@ $(eval $(call gb_Library_use_libraries,fwk,\ comphelper \ cppu \ cppuhelper \ + $(call gb_Helper_optional,BREAKPAD, \ + crashreport) \ fwe \ fwi \ i18nlangtag \ diff --git a/framework/source/services/desktop.cxx b/framework/source/services/desktop.cxx index 64e7e645f3d7..e464fe979e83 100644 --- a/framework/source/services/desktop.cxx +++ b/framework/source/services/desktop.cxx @@ -62,6 +62,7 @@ #include #include #include +#include #include #include @@ -308,6 +309,7 @@ sal_Bool SAL_CALL Desktop::terminate() // see dispose() for further information. /* SAFE AREA --------------------------------------------------------------------------------------- */ SolarMutexClearableGuard aWriteLock; + CrashReporter::AddKeyValue("ShutDown", OUString::boolean(true)); m_bIsTerminated = true; aWriteLock.clear(); /* UNSAFE AREA ------------------------------------------------------------------------------------- */ -- cgit