Commit ae07238c authored by Marcus Folkesson's avatar Marcus Folkesson Committed by hjk

debugger: gdb: Provide server start script with information

The start script needs information about the environment to be
really useful.
Provide this information by arguments.

Change-Id: I9e08c2a8785758caecbbcbc3ea4f97014ff1e281
Signed-off-by: default avatarMarcus Folkesson <>
Reviewed-by: default avatarhjk <>
parent 41eff78e
......@@ -39,6 +39,7 @@
#include <utils/hostosinfo.h>
#include <utils/qtcassert.h>
#include <utils/fancymainwindow.h>
#include <utils/qtcprocess.h>
#include <projectexplorer/abi.h>
#include <QFileInfo>
......@@ -85,7 +86,14 @@ void GdbRemoteServerEngine::setupEngine()
QTC_ASSERT(state() == EngineSetupRequested, qDebug() << state());
showMessage(_("TRYING TO START ADAPTER"));
if (!startParameters().serverStartScript.isEmpty()) {
m_uploadProc.start(_("/bin/sh ") + startParameters().serverStartScript);
// Provide script information about the environment
QString arglist;
Utils::QtcProcess::addArg(&arglist, startParameters().serverStartScript);
Utils::QtcProcess::addArg(&arglist, startParameters().executable);
Utils::QtcProcess::addArg(&arglist, startParameters().remoteChannel);
m_uploadProc.start(_("/bin/sh ") + arglist);
if (startParameters().remoteSetupNeeded)
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