Qnx: Mark new debuggers from setup dialog as not autodetected

And use the right device for its base environment.

Change-Id: Ida6d9c5dd88b766659311f4eacca8ced3c5531cd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
hjk
2023-02-22 12:00:15 +01:00
parent 99b1cc5c24
commit 8ab0c965a4

View File

@@ -217,13 +217,12 @@ void QnxConfiguration::createTools(const Target &target)
QVariant QnxConfiguration::createDebugger(const Target &target)
{
Utils::Environment sysEnv = Utils::Environment::systemEnvironment();
Environment sysEnv = m_qnxHost.deviceEnvironment();
sysEnv.modify(qnxEnvironmentItems());
Debugger::DebuggerItem debugger;
debugger.setCommand(target.m_debuggerPath);
debugger.reinitializeFromFile(nullptr, &sysEnv);
debugger.setAutoDetected(true);
debugger.setUnexpandedDisplayName(Tr::tr("Debugger for %1 (%2)")
.arg(displayName())
.arg(target.shortDescription()));