summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Vogelhuber <wiendl@web.de>2016-04-26 09:52:42 +0200
committerVolker Vogelhuber <wiendl@web.de>2016-04-27 11:08:25 +0000
commitc4f9c6f265c28ed5602646c0fd147f4066d83205 (patch)
tree5b34440082472b701aa37486d7eae36a3c6ad7e2
parentdd7a080eb1a1045e2b26b853c92e6fc4416243fc (diff)
downloadqt-creator-c4f9c6f265c28ed5602646c0fd147f4066d83205.tar.gz
fix environment variables on remote valgrind
Change-Id: I01836cf90d4d905d5edc859e110372a6e634a683 Reviewed-by: hjk <hjk@theqtcompany.com> Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
-rw-r--r--src/plugins/valgrind/valgrindprocess.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/valgrind/valgrindprocess.cpp b/src/plugins/valgrind/valgrindprocess.cpp
index b4894f5066..c9e27dfcca 100644
--- a/src/plugins/valgrind/valgrindprocess.cpp
+++ b/src/plugins/valgrind/valgrindprocess.cpp
@@ -216,6 +216,9 @@ void ValgrindProcess::connected()
cmd += m_valgrindExecutable + QLatin1Char(' ') + argumentString(Utils::OsTypeLinux);
m_remote.m_process = m_remote.m_connection->createRemoteProcess(cmd.toUtf8());
+ for (auto it = m_debuggee.environment.constBegin(); it != m_debuggee.environment.constEnd(); ++it)
+ m_remote.m_process->addToEnvironment(it.key().toUtf8(), it.value().toUtf8());
+
connect(m_remote.m_process.data(), &QSsh::SshRemoteProcess::readyReadStandardError,
this, &ValgrindProcess::handleRemoteStderr);
connect(m_remote.m_process.data(), &QSsh::SshRemoteProcess::readyReadStandardOutput,