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:
parent
409a8890fd
commit
d685b030aa
@ -36,6 +36,7 @@ $(eval $(call gb_Library_use_libraries,crashreport,\
|
|||||||
cppuhelper \
|
cppuhelper \
|
||||||
sal \
|
sal \
|
||||||
salhelper \
|
salhelper \
|
||||||
|
utl \
|
||||||
$(gb_UWINAPI) \
|
$(gb_UWINAPI) \
|
||||||
))
|
))
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
#include <desktop/crashreport.hxx>
|
#include <desktop/crashreport.hxx>
|
||||||
#include <rtl/bootstrap.hxx>
|
#include <rtl/bootstrap.hxx>
|
||||||
#include <osl/file.hxx>
|
#include <osl/file.hxx>
|
||||||
|
#include <unotools/bootstrap.hxx>
|
||||||
|
|
||||||
#include <config_version.h>
|
#include <config_version.h>
|
||||||
#include <config_folders.h>
|
#include <config_folders.h>
|
||||||
@ -73,6 +74,7 @@ void CrashReporter::writeCommonInfo()
|
|||||||
std::ofstream minidump_file(ini_path, std::ios_base::trunc);
|
std::ofstream minidump_file(ini_path, std::ios_base::trunc);
|
||||||
minidump_file << "ProductName=LibreOffice\n";
|
minidump_file << "ProductName=LibreOffice\n";
|
||||||
minidump_file << "Version=" LIBO_VERSION_DOTTED "\n";
|
minidump_file << "Version=" LIBO_VERSION_DOTTED "\n";
|
||||||
|
minidump_file << "BuildID=" << utl::Bootstrap::getBuildIdData("") << "\n";
|
||||||
minidump_file << "URL=http://crashreport.libreoffice.org/submit/\n";
|
minidump_file << "URL=http://crashreport.libreoffice.org/submit/\n";
|
||||||
for (auto& keyValue : maKeyValues)
|
for (auto& keyValue : maKeyValues)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user