Kaydet (Commit) 4e074fb8 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

integrate the minidump upload into the normal LibreOffice

Change-Id: Id1808ceebf6c54698f7d1656a0ce96bcaece89ac
Reviewed-on: https://gerrit.libreoffice.org/25863Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 2d1fc992
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/ */
#include "minidump.hxx" #include <desktop/minidump.hxx>
#include <map> #include <map>
#include <memory> #include <memory>
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/ */
#include "minidump.hxx" #include <desktop/minidump.hxx>
#include<iostream> #include <iostream>
int main(int argc, char** argv) int main(int argc, char** argv)
{ {
......
...@@ -40,6 +40,14 @@ $(eval $(call gb_Library_add_defs,svx,\ ...@@ -40,6 +40,14 @@ $(eval $(call gb_Library_add_defs,svx,\
$(eval $(call gb_Library_set_precompiled_header,svx,$(SRCDIR)/svx/inc/pch/precompiled_svx)) $(eval $(call gb_Library_set_precompiled_header,svx,$(SRCDIR)/svx/inc/pch/precompiled_svx))
ifeq ($(ENABLE_BREAKPAD),TRUE)
$(eval $(call gb_Library_use_static_libraries,svx, \
minidump \
))
endif
$(eval $(call gb_Library_use_libraries,svx,\ $(eval $(call gb_Library_use_libraries,svx,\
basegfx \ basegfx \
sb \ sb \
...@@ -74,6 +82,8 @@ $(eval $(call gb_Library_use_libraries,svx,\ ...@@ -74,6 +82,8 @@ $(eval $(call gb_Library_use_libraries,svx,\
$(eval $(call gb_Library_use_externals,svx,\ $(eval $(call gb_Library_use_externals,svx,\
boost_headers \ boost_headers \
$(call gb_Helper_optional,BREAKPAD, \
curl) \
icuuc \ icuuc \
icu_headers \ icu_headers \
)) ))
......
...@@ -9,10 +9,12 @@ ...@@ -9,10 +9,12 @@
#include "crashreportdlg.hxx" #include "crashreportdlg.hxx"
#include <config_folders.h> #include <config_folders.h>
#include <rtl/bootstrap.hxx> #include <rtl/bootstrap.hxx>
#include <desktop/crashreport.hxx> #include <desktop/crashreport.hxx>
#include <desktop/minidump.hxx>
#include <osl/file.hxx> #include <osl/file.hxx>
CrashReportDialog::CrashReportDialog(vcl::Window* pParent): CrashReportDialog::CrashReportDialog(vcl::Window* pParent):
...@@ -56,13 +58,8 @@ IMPL_LINK_TYPED(CrashReportDialog, BtnHdl, Button*, pBtn, void) ...@@ -56,13 +58,8 @@ IMPL_LINK_TYPED(CrashReportDialog, BtnHdl, Button*, pBtn, void)
if (pBtn == mpBtnSend.get()) if (pBtn == mpBtnSend.get())
{ {
std::string ini_path = CrashReporter::getIniFileName(); std::string ini_path = CrashReporter::getIniFileName();
OUString aCommand;
osl::FileBase::getSystemPathFromFileURL(getLibDir() + "/minidump_upload" SAL_EXEEXTENSION, aCommand);
aCommand = aCommand; readConfig(ini_path);
OString aOStringCommand = rtl::OUStringToOString(aCommand, RTL_TEXTENCODING_UTF8) + " " + ini_path.c_str();
int retVal = std::system(aOStringCommand.getStr());
SAL_WARN_IF(retVal != 0, "svx.dialog", "Failed to upload minidump. Error Code: " << retVal);
// TODO: moggi: return the id for the user to look it up // TODO: moggi: return the id for the user to look it up
Close(); Close();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment