debugger: remove inferiorStarted() signal.

It had unclear semantics and was only used to show a statusmessage.
We do that directly now.
This commit is contained in:
hjk
2009-09-29 10:15:52 +02:00
parent f685aa2361
commit 10fa3b2b76
9 changed files with 24 additions and 33 deletions

View File

@@ -134,13 +134,14 @@ void AttachGdbAdapter::handleAttach(const GdbResponse &response)
void AttachGdbAdapter::startInferior()
{
QTC_ASSERT(state() == InferiorStarting, qDebug() << state());
#if 0
#if 1
setState(InferiorStopped);
debugMessage(_("INFERIOR STARTED"));
showStatusMessage(tr("Attached to stopped inferior."));
#else
// continue on attach
setState(InferiorRunningRequested);
m_engine->postCommand(_("-exec-continue"), CB(handleContinue));
#else
setState(InferiorStopped);
emit inferiorStarted();
#endif
}
@@ -149,7 +150,8 @@ void AttachGdbAdapter::handleContinue(const GdbResponse &response)
QTC_ASSERT(state() == InferiorStarting, qDebug() << state());
if (response.resultClass == GdbResultRunning) {
setState(InferiorRunning);
emit inferiorStarted();
debugMessage(_("INFERIOR STARTED"));
showStatusMessage(tr("Inferior running."));
} else {
QTC_ASSERT(response.resultClass == GdbResultError, /**/);
const QByteArray &msg = response.data.findChild("msg").data();