forked from qt-creator/qt-creator
Fixes: debugger: work on shutdown
This commit is contained in:
@@ -115,6 +115,8 @@ DebuggerRunControl::DebuggerRunControl(DebuggerManager *manager,
|
||||
connect(m_manager, SIGNAL(inferiorPidChanged(qint64)),
|
||||
this, SLOT(bringApplicationToForeground(qint64)),
|
||||
Qt::QueuedConnection);
|
||||
connect(this, SIGNAL(stopRequested()),
|
||||
m_manager, SLOT(exitDebugger()));
|
||||
}
|
||||
|
||||
void DebuggerRunControl::start()
|
||||
@@ -148,17 +150,21 @@ void DebuggerRunControl::slotAddToOutputWindowInline(const QString &data)
|
||||
|
||||
void DebuggerRunControl::stop()
|
||||
{
|
||||
m_manager->exitDebugger();
|
||||
//qDebug() << "DebuggerRunControl::stop";
|
||||
m_running = false;
|
||||
emit stopRequested();
|
||||
}
|
||||
|
||||
void DebuggerRunControl::debuggingFinished()
|
||||
{
|
||||
m_running = false;
|
||||
//qDebug() << "DebuggerRunControl::finished";
|
||||
//emit addToOutputWindow(this, tr("Debugging %1 finished").arg(m_executable));
|
||||
emit finished();
|
||||
}
|
||||
|
||||
bool DebuggerRunControl::isRunning() const
|
||||
{
|
||||
//qDebug() << "DebuggerRunControl::isRunning" << m_running;
|
||||
return m_running;
|
||||
}
|
||||
|
Reference in New Issue
Block a user