forked from qt-creator/qt-creator
		
	RemoteGdb: Request remote setup also if no start script should be used
Change-Id: I75ac2792b19cdb2f06ae07a59b6c9c2b2574084a Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user