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:
		| @@ -78,18 +78,6 @@ void AttachGdbAdapter::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()), QString()); | ||||
|         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); | ||||
|     m_gdbProc.start(location, gdbArgs); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user