forked from qt-creator/qt-creator
Remove ApplicationLauncher::Mode
The actual remaining use was to pop up a terminal in some setups where Mode == Console, with a default of Gui meaning "no console". In some downstream uses it was used set to Console (probably to mean "this helper process does not need a gui") but then luckily ignored when actually starting the helper processes. All cases where the console is useful and requested are nowadays RunWorkers belonging to RunConfigurations with a TerminalAspect, so they can directly get the relevant bit from their RunConfiguration without having it part of all StandardRunnables. Change-Id: I1368d5968da5cf672656aebf200ccac8d45335d0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -413,7 +413,7 @@ void CdbEngine::setupEngine()
|
||||
sp.inferior.commandLineArguments.clear();
|
||||
sp.attachPID = ProcessHandle(terminal()->applicationPid());
|
||||
sp.startMode = AttachExternal;
|
||||
sp.inferior.runMode = ApplicationLauncher::Gui; // Force no terminal.
|
||||
sp.useTerminal = false; // Force no terminal.
|
||||
showMessage(QString("Attaching to %1...").arg(sp.attachPID.pid()), LogMisc);
|
||||
} else {
|
||||
m_effectiveStartMode = sp.startMode;
|
||||
@@ -462,7 +462,7 @@ void CdbEngine::setupEngine()
|
||||
// register idle (debuggee stop) notification
|
||||
<< "-c"
|
||||
<< ".idle_cmd " + m_extensionCommandPrefix + "idle";
|
||||
if (sp.inferior.runMode == ApplicationLauncher::Console) // Separate console
|
||||
if (sp.useTerminal) // Separate console
|
||||
arguments << "-2";
|
||||
if (boolSetting(IgnoreFirstChanceAccessViolation))
|
||||
arguments << "-x";
|
||||
@@ -530,8 +530,7 @@ void CdbEngine::setupEngine()
|
||||
|
||||
// Make sure that QTestLib uses OutputDebugString for logging.
|
||||
const QString qtLoggingToConsoleKey = QStringLiteral("QT_LOGGING_TO_CONSOLE");
|
||||
if (sp.inferior.runMode != ApplicationLauncher::Console
|
||||
&& !inferiorEnvironment.hasKey(qtLoggingToConsoleKey))
|
||||
if (!sp.useTerminal && !inferiorEnvironment.hasKey(qtLoggingToConsoleKey))
|
||||
inferiorEnvironment.set(qtLoggingToConsoleKey, QString(QLatin1Char('0')));
|
||||
|
||||
m_process.setEnvironment(mergeEnvironment(inferiorEnvironment.toStringList(),
|
||||
|
||||
Reference in New Issue
Block a user