forked from qt-creator/qt-creator
Inferior interruption handling changes
On UNIX, use SIGINT to interrupt the child, as the remote debugger's -exec-interrupt does so as well. On Windows, we get a SIGTRAP which we cannot influence. As we currently do not know on which OS a remote debuggee is running, accept either signal in that mode. Reviewed-By: ossi
This commit is contained in:
@@ -61,7 +61,7 @@ bool Debugger::Internal::interruptProcess(int pID)
|
||||
bool Debugger::Internal::interruptProcess(int pID)
|
||||
{
|
||||
if (pID > 0) {
|
||||
if (kill(pID, SIGTRAP) == 0)
|
||||
if (kill(pID, SIGINT) == 0)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user