From 0d3709c35086f0f0aa4158348feb04492e6d7665 Mon Sep 17 00:00:00 2001 From: ck Date: Fri, 16 Oct 2009 15:47:54 +0200 Subject: 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 --- src/plugins/debugger/procinterrupt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/debugger/procinterrupt.cpp') diff --git a/src/plugins/debugger/procinterrupt.cpp b/src/plugins/debugger/procinterrupt.cpp index a65cdcb823..98d4232e25 100644 --- a/src/plugins/debugger/procinterrupt.cpp +++ b/src/plugins/debugger/procinterrupt.cpp @@ -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; -- cgit v1.2.1