Commit 732d9f3e authored by Alexander Drozdov's avatar Alexander Drozdov Committed by hjk

BareMetal: fix OpenOCD additional arguments processing

Plugin incorrectly process additional OpenOCD arguments in case of
Network or Pipe startup modes: all arguments in this line interprets as
one big argument. So, it must be split before using
Utils::QtcProcess::splitArgs(). Otherwise debugging fails to start if
additional arguments consists from two or more parameters.

Change-Id: I5645c0d5a43a58399135c1225f01fe160873a68d
Reviewed-by: default avatarTim Sander <>
Reviewed-by: default avatarhjk <>
parent c691cca4
......@@ -35,6 +35,7 @@
#include <utils/pathchooser.h>
#include <utils/qtcassert.h>
#include <utils/fileutils.h>
#include <utils/qtcprocess.h>
#include <coreplugin/variablechooser.h>
......@@ -145,7 +146,7 @@ QStringList OpenOcdGdbServerProvider::arguments() const
args << QLatin1String("-f") << m_configurationFile;
if (!m_additionalArguments.isEmpty())
args << m_additionalArguments;
args << Utils::QtcProcess::splitArgs(m_additionalArguments);
return args;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment