From c96ecd969715ed225ec01e2ad7c8ec292efaae7d Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 16 Sep 2011 13:44:58 +0200 Subject: [PATCH] * Unbreak breakpad on Linux. --- src/breakpad/BreakPad.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/breakpad/BreakPad.cpp b/src/breakpad/BreakPad.cpp index 8eccd70a2..d86e26d18 100644 --- a/src/breakpad/BreakPad.cpp +++ b/src/breakpad/BreakPad.cpp @@ -51,6 +51,7 @@ LaunchUploader( const char* dump_dir, const char* minidump_id, void* that, bool // execl replaces this process, so no more code will be executed // unless it failed. If it failed, then we should return false. + printf( "Error: Can't launch CrashReporter!\n" ); return false; } @@ -60,7 +61,11 @@ LaunchUploader( const char* dump_dir, const char* minidump_id, void* that, bool BreakPad::BreakPad( const QString& path ) +#ifdef Q_OS_LINUX + : google_breakpad::ExceptionHandler( path.toStdString(), 0, LaunchUploader, this, true ) +#else : google_breakpad::ExceptionHandler( path.toStdString(), 0, LaunchUploader, this, true, 0 ) +#endif { }