aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/valgrind/valgrindengine.cpp
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2016-01-27 13:27:06 +0100
committerhjk <hjk@theqtcompany.com>2016-01-27 15:29:11 +0000
commit61709e92665cb70fddc8b5a5cd98e716a078ed1d (patch)
treef951603099a30ce1f58ad67b961b5f8be7199cda /src/plugins/valgrind/valgrindengine.cpp
parentfa17e27b7fe95d5b72927ad2b2fc3e7fedaf3d47 (diff)
Analyzer: Use a StandardRunnable instead of an AnalyzerRunnable
... with a lot potential to code consolidation. Change-Id: I4d3a7fcc1cc6ae8763799f18cf9701695f387791 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Diffstat (limited to 'src/plugins/valgrind/valgrindengine.cpp')
-rw-r--r--src/plugins/valgrind/valgrindengine.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/valgrind/valgrindengine.cpp b/src/plugins/valgrind/valgrindengine.cpp
index aa018d0566..5d23824a9f 100644
--- a/src/plugins/valgrind/valgrindengine.cpp
+++ b/src/plugins/valgrind/valgrindengine.cpp
@@ -83,10 +83,9 @@ bool ValgrindRunControl::startEngine()
emit outputReceived(tr("Command line arguments: %1").arg(runnable().debuggeeArgs), DebugFormat);
#endif
- StandardRunnable debuggee;
+ StandardRunnable debuggee = runnable();
+ // FIXME: Consolidate:
debuggee.workingDirectory = workingDirectory();
- debuggee.executable = runnable().debuggee;
- debuggee.commandLineArguments = runnable().debuggeeArgs;
debuggee.environment = m_environment;
debuggee.runMode = m_localRunMode;
@@ -119,7 +118,7 @@ void ValgrindRunControl::stopEngine()
QString ValgrindRunControl::executable() const
{
- return runnable().debuggee;
+ return runnable().executable;
}
void ValgrindRunControl::setEnvironment(const Utils::Environment &environment)