Commit cd18b3ce authored by hjk's avatar hjk
Browse files

debugger: add a 'Debugger finished' statusbar message

parent ef788454
......@@ -353,7 +353,6 @@ void DebuggerEngine::showStatusMessage(const QString &msg, int timeout) const
showMessage(msg, StatusBar, timeout);
}
void DebuggerEngine::frameUp()
{
int currentIndex = stackHandler()->currentIndex();
......@@ -604,12 +603,12 @@ void DebuggerEngine::handleFinished()
{
showMessage("HANDLE RUNCONTROL FINISHED");
d->m_runControl = 0;
d->m_progress.setProgressValue(1000);
d->m_progress.reportFinished();
modulesHandler()->removeAll();
stackHandler()->removeAll();
threadsHandler()->removeAll();
watchHandler()->cleanup();
d->m_progress.setProgressValue(1000);
d->m_progress.reportFinished();
}
const DebuggerStartParameters &DebuggerEngine::startParameters() const
......
......@@ -2333,6 +2333,7 @@ void DebuggerPluginPrivate::runControlStarted(DebuggerEngine *engine)
void DebuggerPluginPrivate::runControlFinished(DebuggerEngine *engine)
{
showStatusMessage(tr("Debugger finished."));
m_snapshotHandler->removeSnapshot(engine);
if (m_snapshotHandler->size() == 0) {
// Last engine quits.
......
......@@ -1213,7 +1213,8 @@ void CodaGdbAdapter::cleanup()
delete m_gdbServer;
m_gdbServer = 0;
if (!m_codaSocketIODevice.isNull()) {
QAbstractSocket *socket = qobject_cast<QAbstractSocket *>(m_codaSocketIODevice.data());
QAbstractSocket *socket =
qobject_cast<QAbstractSocket *>(m_codaSocketIODevice.data());
const bool isOpen = socket
? socket->state() == QAbstractSocket::ConnectedState
: m_codaSocketIODevice->isOpen();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment