forked from qt-creator/qt-creator
debugger: simplify the handling of the start script option
Script will be used if and only if there is one given. No extra bool. Change-Id: I095e01b2243f0fa1f7ba2ce9591e3d67b6de5241 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -86,13 +86,9 @@ void GdbRemoteServerEngine::setupEngine()
|
||||
{
|
||||
QTC_ASSERT(state() == EngineSetupRequested, qDebug() << state());
|
||||
showMessage(_("TRYING TO START ADAPTER"));
|
||||
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();
|
||||
}
|
||||
if (!startParameters().serverStartScript.isEmpty()) {
|
||||
m_uploadProc.start(_("/bin/sh ") + startParameters().serverStartScript);
|
||||
m_uploadProc.waitForStarted();
|
||||
}
|
||||
if (startParameters().remoteSetupNeeded)
|
||||
notifyEngineRequestRemoteSetup();
|
||||
|
||||
Reference in New Issue
Block a user