forked from qt-creator/qt-creator
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:
@@ -265,7 +265,7 @@ void CdbEngine::init()
|
||||
}
|
||||
// update source path maps from debugger start params
|
||||
mergeStartParametersSourcePathMap();
|
||||
QTC_ASSERT(m_process.state() != QProcess::Running, m_process.stopProcess());
|
||||
QTC_ASSERT(m_process.state() != QProcess::Running, m_process.stop());
|
||||
}
|
||||
|
||||
CdbEngine::~CdbEngine() = default;
|
||||
@@ -691,7 +691,7 @@ void CdbEngine::shutdownEngine()
|
||||
}
|
||||
} else {
|
||||
// Remote process. No can do, currently
|
||||
m_process.stopProcess();
|
||||
m_process.stop();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user