MCPcopy Create free account
hub / github.com/KDE/kdevelop / interrupt

Method interrupt

plugins/debuggercommon/midebugger.cpp:90–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void 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
104MICommand* MIDebugger::currentCommand() const
105{

Callers 2

interruptDebuggerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected