| 64 | } |
| 65 | |
| 66 | void MIDebugger::execute(std::unique_ptr<MICommand> command) |
| 67 | { |
| 68 | m_currentCmd = std::move(command); |
| 69 | QString commandText = m_currentCmd->cmdToSend(); |
| 70 | |
| 71 | qCDebug(DEBUGGERCOMMON) << "SEND:" << commandText.trimmed(); |
| 72 | |
| 73 | QByteArray commandUtf8 = commandText.toUtf8(); |
| 74 | |
| 75 | m_process->write(commandUtf8); |
| 76 | m_currentCmd->markAsSubmitted(); |
| 77 | |
| 78 | const QString prettyCmd = QLatin1String("(gdb) ") + m_currentCmd->cmdToSend(); |
| 79 | if (m_currentCmd->isUserCommand()) |
| 80 | emit userCommandOutput(prettyCmd); |
| 81 | else |
| 82 | emit internalCommandOutput(prettyCmd); |
| 83 | } |
| 84 | |
| 85 | bool MIDebugger::isReady() const |
| 86 | { |
no test coverage detected