OSDN Git Service

debugger: be a bit more verbose in the log on process interruption
authorhjk <qtc-committer@nokia.com>
Mon, 20 Dec 2010 13:47:29 +0000 (14:47 +0100)
committerhjk <qtc-committer@nokia.com>
Mon, 20 Dec 2010 13:47:52 +0000 (14:47 +0100)
src/plugins/debugger/gdb/localplaingdbadapter.cpp

index e91853b..83715e1 100644 (file)
@@ -164,7 +164,9 @@ void LocalPlainGdbAdapter::interruptInferior()
         return;
     }
 
-    if (!interruptProcess(attachedPID)) {
+    if (interruptProcess(attachedPID)) {
+        showMessage(_("INTERRUPTED %1").arg(attachedPID));
+    } else {
         showMessage(_("CANNOT INTERRUPT %1").arg(attachedPID));
         m_engine->notifyInferiorStopFailed();
     }