From ace97b07cb1e9e3091eaf63ff26bd5711b94d943 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Mon, 13 Jan 2025 13:27:05 +0100 Subject: Debugger: Transform a few fields of DebuggerRunParameters Transform multiProcess, useTerminal and runAsRoot. Task-number: QTCREATORBUG-29168 Change-Id: I18fdd1f0637cf7b367f488128559627096bb39e0 Reviewed-by: hjk --- src/plugins/debugger/cdb/cdbengine.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/debugger/cdb') diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp index affc89de424..ac4587dca32 100644 --- a/src/plugins/debugger/cdb/cdbengine.cpp +++ b/src/plugins/debugger/cdb/cdbengine.cpp @@ -285,7 +285,7 @@ void CdbEngine::setupEngine() sp.setInferior({{}, sp.inferior().workingDirectory, sp.inferior().environment}); sp.setAttachPid(applicationPid()); sp.setStartMode(AttachToLocalProcess); - sp.useTerminal = false; // Force no terminal. + sp.setUseTerminal(false); // Force no terminal. showMessage(Tr::tr("Attaching to %1...").arg(sp.attachPid().pid()), LogMisc); } else { m_effectiveStartMode = sp.startMode(); @@ -341,7 +341,7 @@ void CdbEngine::setupEngine() // register idle (debuggee stop) notification "-c", ".idle_cmd " + m_extensionCommandPrefix + "idle"}); - if (sp.useTerminal) // Separate console + if (sp.useTerminal()) // Separate console debugger.addArg("-2"); const DebuggerSettings &s = settings(); @@ -397,7 +397,7 @@ void CdbEngine::setupEngine() // Make sure that QTestLib uses OutputDebugString for logging. const QString qtLoggingToConsoleKey = QStringLiteral("QT_LOGGING_TO_CONSOLE"); - if (!sp.useTerminal && !inferiorEnvironment.hasKey(qtLoggingToConsoleKey)) + if (!sp.useTerminal() && !inferiorEnvironment.hasKey(qtLoggingToConsoleKey)) inferiorEnvironment.set(qtLoggingToConsoleKey, "0"); static const char cdbExtensionPathVariableC[] = "_NT_DEBUGGER_EXTENSION_PATH"; -- cgit v1.2.3