forked from qt-creator/qt-creator
remove useless code
--tty + outputcollector, working dir and environment setup make sense only for living local debuggees.
This commit is contained in:
@@ -86,18 +86,6 @@ void RemoteGdbAdapter::startAdapter()
|
||||
gdbArgs.prepend(_("mi"));
|
||||
gdbArgs.prepend(_("-i"));
|
||||
|
||||
// if (!m_engine->m_outputCollector.listen()) {
|
||||
// emit adapterStartFailed(tr("Cannot set up communication with child process: %1")
|
||||
// .arg(m_engine->m_outputCollector.errorString()));
|
||||
// return;
|
||||
// }
|
||||
// gdbArgs.prepend(_("--tty=") + m_engine->m_outputCollector.serverName());
|
||||
|
||||
if (!startParameters().workingDir.isEmpty())
|
||||
setWorkingDirectory(startParameters().workingDir);
|
||||
if (!startParameters().environment.isEmpty())
|
||||
setEnvironment(startParameters().environment);
|
||||
|
||||
QString location = theDebuggerStringSetting(GdbLocation);
|
||||
|
||||
// FIXME: make asynchroneous
|
||||
@@ -106,10 +94,6 @@ void RemoteGdbAdapter::startAdapter()
|
||||
m_engine->showStatusMessage(_("No server start script given. "
|
||||
"Assuming server runs already."));
|
||||
} else {
|
||||
if (!startParameters().workingDir.isEmpty())
|
||||
m_uploadProc.setWorkingDirectory(startParameters().workingDir);
|
||||
if (!startParameters().environment.isEmpty())
|
||||
m_uploadProc.setEnvironment(startParameters().environment);
|
||||
m_uploadProc.start(_("/bin/sh ") + startParameters().serverStartScript);
|
||||
m_uploadProc.waitForStarted();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user