Commit 2276845e authored by Denis Shienkov's avatar Denis Shienkov

BareMetal: Fix startup of OpenOCD in TCP/IP mode on Windows

Previously, the OpenOCD utility fails as the startup arguments
contains a wrong quotes wrapping for Windows OS. For example the
'gdb_port 3333' argument contains a single quotes, instead of
double quotes, due to passed the Utils::OsTypeLinux parameter for
any OS. We need to use the Utils::HostOsInfo::hostOs() function
instead.

Task-number: QTCREATORBUG-17765
Change-Id: I08acc4158baeca04e1b8685f1fdac40684f1c70c
Reviewed-by: default avatarhjk <hjk@qt.io>
parent 5c8b6f8a
...@@ -171,7 +171,10 @@ void BareMetalDebugSupport::startExecution() ...@@ -171,7 +171,10 @@ void BareMetalDebugSupport::startExecution()
StandardRunnable r; StandardRunnable r;
r.executable = p->executable(); r.executable = p->executable();
r.commandLineArguments = Utils::QtcProcess::joinArgs(p->arguments(), Utils::OsTypeLinux); // We need to wrap the command arguments depending on a host OS,
// as the bare metal's GDB servers are launched on a host,
// but not on a target.
r.commandLineArguments = Utils::QtcProcess::joinArgs(p->arguments(), Utils::HostOsInfo::hostOs());
m_appRunner->start(dev, r); m_appRunner->start(dev, r);
} }
......
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