| 1272 | } |
| 1273 | |
| 1274 | void MIDebugSession::explainDebuggerStatus() |
| 1275 | { |
| 1276 | MICommand* currentCmd_ = m_debugger->currentCommand(); |
| 1277 | QString information = |
| 1278 | i18np("1 command in queue\n", "%1 commands in queue\n", m_commandQueue->count()) + |
| 1279 | i18ncp("Only the 0 and 1 cases need to be translated", "1 command being processed by gdb\n", "%1 commands being processed by gdb\n", (currentCmd_ ? 1 : 0)) + |
| 1280 | i18n("Debugger state: %1\n", m_debuggerState); |
| 1281 | |
| 1282 | if (currentCmd_) { |
| 1283 | QString extra = i18n("Current command class: '%1'\n" |
| 1284 | "Current command text: '%2'\n" |
| 1285 | "Current command original text: '%3'\n", |
| 1286 | QString::fromUtf8(typeid(*currentCmd_).name()), |
| 1287 | currentCmd_->cmdToSend(), |
| 1288 | currentCmd_->initialString()); |
| 1289 | |
| 1290 | information += extra; |
| 1291 | } |
| 1292 | |
| 1293 | auto* message = new Sublime::Message(information, Sublime::Message::Information); |
| 1294 | ICore::self()->uiController()->postMessage(message); |
| 1295 | } |
| 1296 | |
| 1297 | // FIXME: connect to debugger's slot. |
| 1298 | void MIDebugSession::defaultErrorHandler(const MI::ResultRecord& result) |
nothing calls this directly
no test coverage detected