forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user