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>
This commit is contained in:
Samuel Mehrbrodt 2017-01-12 16:46:45 +01:00 committed by Markus Mohrhard
parent 409a8890fd
commit d685b030aa
2 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,7 @@ $(eval $(call gb_Library_use_libraries,crashreport,\
cppuhelper \
sal \
salhelper \
utl \
$(gb_UWINAPI) \
))

View File

@ -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)
{