| 88 | } |
| 89 | |
| 90 | void MIDebugger::interrupt() |
| 91 | { |
| 92 | #ifndef Q_OS_WIN |
| 93 | int pid = m_process->processId(); |
| 94 | if (pid != 0) { |
| 95 | ::kill(pid, SIGINT); |
| 96 | } |
| 97 | #else |
| 98 | SetConsoleCtrlHandler(nullptr, true); |
| 99 | GenerateConsoleCtrlEvent(0, 0); |
| 100 | SetConsoleCtrlHandler(nullptr, false); |
| 101 | #endif |
| 102 | } |
| 103 | |
| 104 | MICommand* MIDebugger::currentCommand() const |
| 105 | { |
no outgoing calls
no test coverage detected