diff options
author | Gopi Krishna Menon <gopi.menon@collabora.com> | 2021-06-16 10:02:23 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2021-06-18 09:05:36 +0200 |
commit | a3d89265e0be3f9ee8ae813e4aeaa90af1714348 (patch) | |
tree | 2ed46f464fd48f9ee145e4af9fa19e81d0e6995f /include/desktop | |
parent | 07e269f2596756bf841bbc380929bcffc3ca6bc6 (diff) |
Add Active Sfx Object Name To CrashReport Dump
Adds Active-SfxObject field in CrashReport to assist in investigating the crashes
Change-Id: I08637a66ae95977e7afe4f5dce634b46c928a423
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117318
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'include/desktop')
-rw-r--r-- | include/desktop/crashreport.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/desktop/crashreport.hxx b/include/desktop/crashreport.hxx index c16b4a7eb80b..e7fd0d15d39b 100644 --- a/include/desktop/crashreport.hxx +++ b/include/desktop/crashreport.hxx @@ -50,18 +50,18 @@ public: static void installExceptionHandler(); static void removeExceptionHandler(); + static void setActiveSfxObjectName(const OUString& rActiveSfxObjectName); + static OUString getActiveSfxObjectName(); + static bool crashReportInfoExists(); static bool readSendConfig(std::string& response); static bool IsDumpEnable(); - static void setActiveApp(const OUString& rActiveApp); - static OUString currentActiveApp(); - private: static osl::Mutex maMutex; - static osl::Mutex maActiveNameMutex; + static osl::Mutex maActiveSfxObjectNameMutex; static bool mbInit; typedef struct _mpair { @@ -76,7 +76,7 @@ private: typedef std::vector<mpair> vmaKeyValues; static vmaKeyValues maKeyValues; // used to temporarily save entries before the old info has been uploaded - static OUString mActiveApp; + static OUString msActiveSfxObjectName; static std::unique_ptr<google_breakpad::ExceptionHandler> mpExceptionHandler; @@ -93,11 +93,11 @@ private: // // the code without linking to the lib and without adding HAVE_FEATURE_BREAKPAD // // everywhere we want to log something to the crash report system. inline static void addKeyValue(SAL_UNUSED_PARAMETER const OUString& /*rKey*/, SAL_UNUSED_PARAMETER const OUString& /*rValue*/, SAL_UNUSED_PARAMETER tAddKeyHandling /*AddKeyHandling*/) {}; - inline static void setActiveApp(SAL_UNUSED_PARAMETER const OUString& /*rActiveApp*/) {}; - inline static OUString currentActiveApp() + inline static void setActiveSfxObjectName(SAL_UNUSED_PARAMETER const OUString& /*rActiveSfxObjectName*/) {}; + inline static OUString getActiveSfxObjectName() { return OUString(); - }; + } #endif // HAVE_FEATURE_BREAKPAD }; |