Commit 9e8f935a authored by Kai Koehne's avatar Kai Koehne Committed by hjk
Browse files

RemoteGdb: Request remote setup also if no start script should be used



Change-Id: I75ac2792b19cdb2f06ae07a59b6c9c2b2574084a
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent dac69143
......@@ -87,17 +87,15 @@ void RemoteGdbServerAdapter::startAdapter()
{
QTC_ASSERT(state() == EngineSetupRequested, qDebug() << state());
showMessage(_("TRYING TO START ADAPTER"));
if (!startParameters().useServerStartScript) {
handleSetupDone();
return;
}
if (startParameters().serverStartScript.isEmpty()) {
showMessage(_("No server start script given. "), StatusBar);
m_engine->requestRemoteSetup();
} else {
m_uploadProc.start(_("/bin/sh ") + startParameters().serverStartScript);
m_uploadProc.waitForStarted();
if (startParameters().useServerStartScript) {
if (startParameters().serverStartScript.isEmpty()) {
showMessage(_("No server start script given. "), StatusBar);
} else {
m_uploadProc.start(_("/bin/sh ") + startParameters().serverStartScript);
m_uploadProc.waitForStarted();
}
}
m_engine->requestRemoteSetup();
}
void RemoteGdbServerAdapter::uploadProcError(QProcess::ProcessError error)
......
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