diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-01-12 16:46:45 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-01-15 11:22:46 +0000 |
commit | d685b030aa0d7aa25d9666cd6857b7cb917e297c (patch) | |
tree | f9a1cd6c238b822ab784e8a3c4350fee5ee79c29 /desktop | |
parent | 409a8890fd2adb2543fdc161c37358411eb9345a (diff) |
Add build id to crash metadata
Change-Id: I0e11a96936ea08cc439fcc1b1e3ff1f59c636665
Reviewed-on: https://gerrit.libreoffice.org/33026
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/Library_crashreport.mk | 1 | ||||
-rw-r--r-- | desktop/source/app/crashreport.cxx | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/desktop/Library_crashreport.mk b/desktop/Library_crashreport.mk index ba2f3483a416..d6d9b8b91cc5 100644 --- a/desktop/Library_crashreport.mk +++ b/desktop/Library_crashreport.mk @@ -36,6 +36,7 @@ $(eval $(call gb_Library_use_libraries,crashreport,\ cppuhelper \ sal \ salhelper \ + utl \ $(gb_UWINAPI) \ )) diff --git a/desktop/source/app/crashreport.cxx b/desktop/source/app/crashreport.cxx index 7a5f6c5ca7b6..7ec47236535a 100644 --- a/desktop/source/app/crashreport.cxx +++ b/desktop/source/app/crashreport.cxx @@ -10,6 +10,7 @@ #include <desktop/crashreport.hxx> #include <rtl/bootstrap.hxx> #include <osl/file.hxx> +#include <unotools/bootstrap.hxx> #include <config_version.h> #include <config_folders.h> @@ -73,6 +74,7 @@ void CrashReporter::writeCommonInfo() std::ofstream minidump_file(ini_path, std::ios_base::trunc); minidump_file << "ProductName=LibreOffice\n"; minidump_file << "Version=" LIBO_VERSION_DOTTED "\n"; + minidump_file << "BuildID=" << utl::Bootstrap::getBuildIdData("") << "\n"; minidump_file << "URL=http://crashreport.libreoffice.org/submit/\n"; for (auto& keyValue : maKeyValues) { |