mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 05:45:27 +00:00
Start Crash Handler detached
This commit is contained in:
parent
c2deabee5d
commit
5add53cbf8
@ -42,9 +42,10 @@ bool callback(const wchar_t *_dump_dir,
|
||||
{
|
||||
const QDir dir = QString::fromWCharArray(_dump_dir);
|
||||
const QString id = QString::fromWCharArray(_minidump_id);
|
||||
QProcess::execute(QCoreApplication::applicationFilePath()
|
||||
QProcess::startDetached(QCoreApplication::applicationFilePath()
|
||||
+ " --start-crash-handler "
|
||||
+ dir.filePath(id + ".dmp"));
|
||||
_exit(1);
|
||||
return true;
|
||||
}
|
||||
#elif defined (Q_OS_LINUX)
|
||||
@ -52,9 +53,10 @@ bool callback(const wchar_t *_dump_dir,
|
||||
// Saves path to file
|
||||
bool callback(const google_breakpad::MinidumpDescriptor &md, void *context, bool b)
|
||||
{
|
||||
QProcess::execute(QCoreApplication::applicationFilePath()
|
||||
QProcess::startDetached(QCoreApplication::applicationFilePath()
|
||||
+ " --start-crash-handler "
|
||||
+ md.path());
|
||||
_exit(1);
|
||||
return true;
|
||||
}
|
||||
#elif defined (Q_OS_MACOS)
|
||||
@ -64,9 +66,10 @@ bool callback(const char *dump_dir, const char *minidump_id, void *context, bool
|
||||
{
|
||||
const QDir dir = QString::fromUtf8(dump_dir);
|
||||
const QString id = QString::fromUtf8(minidump_id);
|
||||
QProcess::execute(QCoreApplication::applicationFilePath()
|
||||
QProcess::startDetached(QCoreApplication::applicationFilePath()
|
||||
+ " --start-crash-handler "
|
||||
+ dir.filePath(id + ".dmp"));
|
||||
_exit(1);
|
||||
return true;
|
||||
}
|
||||
#endif // Q_OS
|
||||
|
Loading…
Reference in New Issue
Block a user