| 53 | } |
| 54 | |
| 55 | MIDebugger::~MIDebugger() |
| 56 | { |
| 57 | // prevent Qt warning: QProcess: Destroyed while process is still running. |
| 58 | if (m_process && m_process->state() == QProcess::Running) { |
| 59 | disconnect(m_process, &QProcess::errorOccurred, |
| 60 | this, &MIDebugger::processErrored); |
| 61 | m_process->kill(); |
| 62 | m_process->waitForFinished(10); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | void MIDebugger::execute(std::unique_ptr<MICommand> command) |
| 67 | { |