Debugger: Use QtcProcess::stop instead of stopProcess

Less synchronous in cases where it is not needed.

Change-Id: Ia07e6d293c7f5e6dfb81b06c0ffb6d5d651b88b3
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2022-06-16 08:53:43 +02:00
parent 07dfd7c0b3
commit bfad59ade0
2 changed files with 2 additions and 3 deletions

View File

@@ -265,7 +265,7 @@ void CdbEngine::init()
} }
// update source path maps from debugger start params // update source path maps from debugger start params
mergeStartParametersSourcePathMap(); mergeStartParametersSourcePathMap();
QTC_ASSERT(m_process.state() != QProcess::Running, m_process.stopProcess()); QTC_ASSERT(m_process.state() != QProcess::Running, m_process.stop());
} }
CdbEngine::~CdbEngine() = default; CdbEngine::~CdbEngine() = default;
@@ -691,7 +691,7 @@ void CdbEngine::shutdownEngine()
} }
} else { } else {
// Remote process. No can do, currently // Remote process. No can do, currently
m_process.stopProcess(); m_process.stop();
} }
} }

View File

@@ -453,7 +453,6 @@ static QString findQtInstallPath(const FilePath &qmakePath)
return QString(); return QString();
} }
if (!proc.waitForFinished()) { if (!proc.waitForFinished()) {
proc.stopProcess();
qWarning("%s: Timeout running '%s'.", Q_FUNC_INFO, qPrintable(qmakePath.toString())); qWarning("%s: Timeout running '%s'.", Q_FUNC_INFO, qPrintable(qmakePath.toString()));
return QString(); return QString();
} }