Changeset View
Changeset View
Standalone View
Standalone View
plugins/debuggercommon/midebugsession.cpp
Show First 20 Lines • Show All 248 Lines • ▼ Show 20 Line(s) | 218 | { | |||
---|---|---|---|---|---|
249 | } | 249 | } | ||
250 | 250 | | |||
251 | m_tty.reset(new STTY(config_useExternalTerminal, config_ternimalName)); | 251 | m_tty.reset(new STTY(config_useExternalTerminal, config_ternimalName)); | ||
252 | if (!config_useExternalTerminal) { | 252 | if (!config_useExternalTerminal) { | ||
253 | connect(m_tty.get(), &STTY::OutOutput, this, &MIDebugSession::inferiorTtyStdout); | 253 | connect(m_tty.get(), &STTY::OutOutput, this, &MIDebugSession::inferiorTtyStdout); | ||
254 | connect(m_tty.get(), &STTY::ErrOutput, this, &MIDebugSession::inferiorTtyStderr); | 254 | connect(m_tty.get(), &STTY::ErrOutput, this, &MIDebugSession::inferiorTtyStderr); | ||
255 | } | 255 | } | ||
256 | QString tty(m_tty->getSlave()); | 256 | QString tty(m_tty->getSlave()); | ||
257 | #ifndef Q_OS_WIN | ||||
257 | if (tty.isEmpty()) { | 258 | if (tty.isEmpty()) { | ||
258 | KMessageBox::information(qApp->activeWindow(), m_tty->lastError(), i18n("warning")); | 259 | KMessageBox::information(qApp->activeWindow(), m_tty->lastError(), i18n("warning")); | ||
259 | 260 | | |||
260 | m_tty.reset(nullptr); | 261 | m_tty.reset(nullptr); | ||
261 | return false; | 262 | return false; | ||
262 | } | 263 | } | ||
264 | #endif | ||||
263 | addCommand(InferiorTtySet, tty); | 265 | addCommand(InferiorTtySet, tty); | ||
264 | 266 | | |||
265 | // Change the working directory to the correct one | 267 | // Change the working directory to the correct one | ||
266 | QString dir = iexec->workingDirectory(cfg).toLocalFile(); | 268 | QString dir = iexec->workingDirectory(cfg).toLocalFile(); | ||
267 | if (dir.isEmpty()) { | 269 | if (dir.isEmpty()) { | ||
268 | dir = QFileInfo(executable).absolutePath(); | 270 | dir = QFileInfo(executable).absolutePath(); | ||
269 | } | 271 | } | ||
270 | addCommand(EnvironmentCd, '"' + dir + '"'); | 272 | addCommand(EnvironmentCd, '"' + dir + '"'); | ||
▲ Show 20 Lines • Show All 1045 Lines • Show Last 20 Lines |