summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/baremetal/baremetaldebugsupport.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/baremetal/baremetaldebugsupport.cpp b/src/plugins/baremetal/baremetaldebugsupport.cpp
index 3bbf232311..f0990b2115 100644
--- a/src/plugins/baremetal/baremetaldebugsupport.cpp
+++ b/src/plugins/baremetal/baremetaldebugsupport.cpp
@@ -171,7 +171,10 @@ void BareMetalDebugSupport::startExecution()
StandardRunnable r;
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);
}