Valgrind: Move to Utils::FilePath in some places

Change-Id: I54d03ccda62121055509fd24c5c98a13f7605964
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2019-07-23 08:30:25 +02:00
parent 5efa84b91f
commit b0e52f7ff6
6 changed files with 33 additions and 30 deletions

View File

@@ -81,8 +81,11 @@ void ValgrindToolRunner::start()
emit outputReceived(tr("Command line arguments: %1").arg(runnable().debuggeeArgs), DebugFormat);
#endif
m_runner.setValgrindExecutable(m_settings->valgrindExecutable());
m_runner.setValgrindArguments(genericToolArguments() + toolArguments());
CommandLine valgrind{FilePath::fromString(m_settings->valgrindExecutable())};
valgrind.addArgs(genericToolArguments());
valgrind.addArgs(toolArguments());
m_runner.setValgrindCommand(valgrind);
m_runner.setDevice(device());
m_runner.setDebuggee(runnable());