forked from qt-creator/qt-creator
Debugger: Move .useTerminal modification to central fixup
Even if this is LLDB-specific having the value fixed early will help in moving terminal handling into a RunWorker of its own. Change-Id: I73a9564148dec9b28557c12cc248a4f0b668f8d7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -708,6 +708,13 @@ static bool fixupParameters(DebuggerRunParameters &rp, RunControl *runControl, Q
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME: We can't handle terminals yet.
|
||||||
|
if (rp.useTerminal && rp.cppEngineType == LldbEngineType) {
|
||||||
|
qWarning("Run in Terminal is not supported yet with the LLDB backend");
|
||||||
|
m_errors.append(DebuggerPlugin::tr("Run in Terminal is not supported with the LLDB backend."));
|
||||||
|
rp.useTerminal = false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -176,13 +176,6 @@ void LldbEngine::abortDebugger()
|
|||||||
|
|
||||||
void LldbEngine::setupEngine()
|
void LldbEngine::setupEngine()
|
||||||
{
|
{
|
||||||
// FIXME: We can't handle terminals yet.
|
|
||||||
if (runParameters().useTerminal) {
|
|
||||||
qWarning("Run in Terminal is not supported yet with the LLDB backend");
|
|
||||||
showMessage(tr("Run in Terminal is not supported with the LLDB backend."), AppError);
|
|
||||||
runParameters().useTerminal = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (runParameters().useTerminal) {
|
if (runParameters().useTerminal) {
|
||||||
QTC_CHECK(false); // See above.
|
QTC_CHECK(false); // See above.
|
||||||
if (HostOsInfo::isWindowsHost()) {
|
if (HostOsInfo::isWindowsHost()) {
|
||||||
|
Reference in New Issue
Block a user