ci: dump crashpad symbols on linux
This commit is contained in:
@@ -71,13 +71,11 @@ bool LinuxExceptionHandler(int, siginfo_t*, ucontext_t*)
|
||||
|
||||
bool InitializeCrashpad()
|
||||
{
|
||||
QString handler_fn;
|
||||
QString handler_fn = QStringLiteral("crashpad_handler");;
|
||||
|
||||
// Determine filename of handler from platform
|
||||
#ifdef OS_WIN
|
||||
handler_fn = QStringLiteral("crashpad_handler.exe");
|
||||
#else
|
||||
handler_fn = QStringLiteral("crashpad_handler");
|
||||
handler_fn.append(QStringLiteral(".exe"));
|
||||
#endif
|
||||
|
||||
// Generate absolute path
|
||||
|
||||
@@ -115,15 +115,20 @@ void CrashHandlerDialog::GenerateReport()
|
||||
this, &CrashHandlerDialog::ReadProcessFinished);
|
||||
connect(p, &QProcess::readyReadStandardOutput, this, &CrashHandlerDialog::ReadProcessHasData);
|
||||
|
||||
QDir app_path(qApp->applicationDirPath());
|
||||
QString stackwalk_bin = app_path.filePath(stackwalk_filename);
|
||||
|
||||
QString stackwalk_filename = QStringLiteral("minidump_stackwalk");
|
||||
QString symbols_path;
|
||||
|
||||
#if defined(OS_WIN)
|
||||
stackwalk_filename.append(QStringLiteral(".exe"));
|
||||
symbols_path = app_path.filePath(QStringLiteral("symbols"));
|
||||
#elif defined(Q_OS_LINUX)
|
||||
symbols_path = app_path.filePath(QStringLiteral("../share/olive-editor/symbols"));
|
||||
#endif
|
||||
|
||||
QDir app_path(qApp->applicationDirPath());
|
||||
QString stackwalk_bin = app_path.filePath(stackwalk_filename);
|
||||
p->start(stackwalk_bin, {report_filename_, app_path.filePath(QStringLiteral("symbols"))});
|
||||
p->start(stackwalk_bin, {report_filename_, symbols_path});
|
||||
crash_report_->setText(QStringLiteral("Trying to run: %1").arg(stackwalk_bin));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user