CrashHandler: Generalize for other clients

* Put the binary into the libexec path
* Check for process origin more explicitly
* Allow providing the application name
* Allow disabling the restart action

Change-Id: Ide7132215d7c251ce486daab60ac680de3c9f9a6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Nikolai Kosjar
2016-10-25 12:29:52 +02:00
parent a1b0302014
commit 69555ec851
12 changed files with 103 additions and 35 deletions

View File

@@ -327,7 +327,8 @@ int main(int argc, char **argv)
const int threadCount = QThreadPool::globalInstance()->maxThreadCount();
QThreadPool::globalInstance()->setMaxThreadCount(qMax(4, 2 * threadCount));
CrashHandlerSetup setupCrashHandler; // Display a backtrace once a serious signal is delivered.
// Display a backtrace once a serious signal is delivered.
CrashHandlerSetup setupCrashHandler(IDE_LIBEXEC_PATH);
#ifdef ENABLE_QT_BREAKPAD
QtSystemExceptionHandler systemExceptionHandler;