diff options
author | ck <qt-info@nokia.com> | 2009-10-16 15:47:54 +0200 |
---|---|---|
committer | ck <qt-info@nokia.com> | 2009-10-16 18:01:07 +0200 |
commit | 0d3709c35086f0f0aa4158348feb04492e6d7665 (patch) | |
tree | c52cbbb47fdbebab3ae51b643fa26f7478b4c276 /src/plugins/debugger/procinterrupt.cpp | |
parent | 42d3ada0b486b2b62a0a13cc0aea431341fee55a (diff) | |
download | qt-creator-0d3709c35086f0f0aa4158348feb04492e6d7665.tar.gz |
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
Diffstat (limited to 'src/plugins/debugger/procinterrupt.cpp')
-rw-r--r-- | src/plugins/debugger/procinterrupt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |