Qnx: Pass SDP environment to gdb

Change-Id: I96323671176112c3295aa5ecddaf538ea645e92a
Reviewed-by: Rafael Roquetto <rafael.roquetto@qt.io>
This commit is contained in:
hjk
2022-07-21 08:07:59 +02:00
parent 93ddc48956
commit a793fe6479
2 changed files with 5 additions and 3 deletions

View File

@@ -147,8 +147,10 @@ QnxDebugSupport::QnxDebugSupport(RunControl *runControl)
setCloseMode(KillAtClose); setCloseMode(KillAtClose);
setUseCtrlCStub(true); setUseCtrlCStub(true);
setSolibSearchPath(searchPaths(k)); setSolibSearchPath(searchPaths(k));
if (auto qtVersion = dynamic_cast<QnxQtVersion *>(QtSupport::QtKitAspect::qtVersion(k))) if (auto qtVersion = dynamic_cast<QnxQtVersion *>(QtSupport::QtKitAspect::qtVersion(k))) {
setSysRoot(qtVersion->qnxTarget()); setSysRoot(qtVersion->qnxTarget());
modifyDebuggerEnvironment(qtVersion->environment());
}
} }

View File

@@ -66,11 +66,11 @@ public:
Utils::FilePath sdpPath() const; Utils::FilePath sdpPath() const;
void setSdpPath(const Utils::FilePath &sdpPath); void setSdpPath(const Utils::FilePath &sdpPath);
Utils::EnvironmentItems environment() const;
private: private:
void updateEnvironment() const; void updateEnvironment() const;
Utils::EnvironmentItems environment() const;
Utils::FilePath m_sdpPath; Utils::FilePath m_sdpPath;
mutable QString m_cpuDir; mutable QString m_cpuDir;