forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user