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:
ck
2009-10-16 15:47:54 +02:00
parent 42d3ada0b4
commit 0d3709c350
2 changed files with 21 additions and 7 deletions

View File

@@ -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;