forked from qt-creator/qt-creator
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:
@@ -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()));
|
||||
|
Reference in New Issue
Block a user