summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/gdbengine.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-03-05 14:00:19 +0100
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-03-05 15:26:23 +0100
commit6e118e72a0bcffa3a6c6967fd9196415063673f1 (patch)
treefc43fa6130a3a31186812f6b2dbf26eedb6bb99e /src/plugins/debugger/gdbengine.cpp
parent445e409db75bb83e03efa7acde2de36d24958bc3 (diff)
downloadqt-creator-6e118e72a0bcffa3a6c6967fd9196415063673f1.tar.gz
process interruption improvements
rely on the inferior's pid being available. consequently, remove the bizarre findChild stuff.
Diffstat (limited to 'src/plugins/debugger/gdbengine.cpp')
-rw-r--r--src/plugins/debugger/gdbengine.cpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/plugins/debugger/gdbengine.cpp b/src/plugins/debugger/gdbengine.cpp
index 5609de169d..26541acce9 100644
--- a/src/plugins/debugger/gdbengine.cpp
+++ b/src/plugins/debugger/gdbengine.cpp
@@ -620,23 +620,13 @@ void GdbEngine::interruptInferior()
return;
}
- if (q->m_attachedPID > 0) {
- if (!interruptProcess(q->m_attachedPID))
- // qq->notifyInferiorStopped();
- //else
- debugMessage(QString("CANNOT INTERRUPT %1").arg(q->m_attachedPID));
+ if (q->m_attachedPID <= 0) {
+ debugMessage("TRYING TO INTERRUPT INFERIOR BEFORE PID WAS OBTAINED");
return;
}
-#ifdef Q_OS_MAC
- sendCommand("-exec-interrupt", GdbExecInterrupt);
- //qq->notifyInferiorStopped();
-#else
- if (!interruptChildProcess(m_gdbProc.pid()))
- // qq->notifyInferiorStopped();
- //else
- debugMessage(QString("CANNOT STOP INFERIOR"));
-#endif
+ if (!interruptProcess(q->m_attachedPID))
+ debugMessage(QString("CANNOT INTERRUPT %1").arg(q->m_attachedPID));
}
void GdbEngine::maybeHandleInferiorPidChanged(const QString &pid0)