summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-12-28 23:57:36 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-12-30 23:48:05 +0000
commitf5695bf6a868e14e28f06697b2803ff7d325e7cb (patch)
tree9a7f3465f5a0dbba9a8629b5259487fc1afa43d7 /framework
parent4fd745172eecd62a18570989f77d8f0a371b9ce9 (diff)
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 <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Conflicts: framework/source/services/desktop.cxx Change-Id: Id09c3dfdc94c430d5dcb2aebb017f17db80f17e5 Reviewed-on: https://gerrit.libreoffice.org/32487 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/Library_fwk.mk2
-rw-r--r--framework/source/services/desktop.cxx2
2 files changed, 4 insertions, 0 deletions
diff --git a/framework/Library_fwk.mk b/framework/Library_fwk.mk
index e6d0ae2b3110..2246286b0348 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 c8bf51fe6a8e..e069905bb15a 100644
--- a/framework/source/services/desktop.cxx
+++ b/framework/source/services/desktop.cxx
@@ -62,6 +62,7 @@
#include <cppuhelper/supportsservice.hxx>
#include <rtl/instance.hxx>
#include <vcl/svapp.hxx>
+#include <desktop/crashreport.hxx>
#include <tools/errinf.hxx>
#include <unotools/configmgr.hxx>
@@ -317,6 +318,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 ------------------------------------------------------------------------------------- */