Commit de9b4e83 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

centralize setting of AdapterStarted state

parent e0a0aebb
...@@ -73,7 +73,6 @@ void AttachGdbAdapter::startAdapter() ...@@ -73,7 +73,6 @@ void AttachGdbAdapter::startAdapter()
void AttachGdbAdapter::handleGdbStarted() void AttachGdbAdapter::handleGdbStarted()
{ {
QTC_ASSERT(state() == AdapterStarting, qDebug() << state()); QTC_ASSERT(state() == AdapterStarting, qDebug() << state());
setState(AdapterStarted);
emit adapterStarted(); emit adapterStarted();
} }
......
...@@ -73,7 +73,6 @@ void CoreGdbAdapter::startAdapter() ...@@ -73,7 +73,6 @@ void CoreGdbAdapter::startAdapter()
void CoreGdbAdapter::handleGdbStarted() void CoreGdbAdapter::handleGdbStarted()
{ {
QTC_ASSERT(state() == AdapterStarting, qDebug() << state()); QTC_ASSERT(state() == AdapterStarting, qDebug() << state());
setState(AdapterStarted);
emit adapterStarted(); emit adapterStarted();
} }
......
...@@ -4100,6 +4100,7 @@ void GdbEngine::handleAdapterStartFailed(const QString &msg, const QString &sett ...@@ -4100,6 +4100,7 @@ void GdbEngine::handleAdapterStartFailed(const QString &msg, const QString &sett
void GdbEngine::handleAdapterStarted() void GdbEngine::handleAdapterStarted()
{ {
setState(AdapterStarted);
debugMessage(_("ADAPTER SUCCESSFULLY STARTED, INITIALIZING GDB")); debugMessage(_("ADAPTER SUCCESSFULLY STARTED, INITIALIZING GDB"));
postCommand(_("show version"), CB(handleShowVersion)); postCommand(_("show version"), CB(handleShowVersion));
......
...@@ -93,7 +93,6 @@ void PlainGdbAdapter::startAdapter() ...@@ -93,7 +93,6 @@ void PlainGdbAdapter::startAdapter()
void PlainGdbAdapter::handleGdbStarted() void PlainGdbAdapter::handleGdbStarted()
{ {
QTC_ASSERT(state() == AdapterStarting, qDebug() << state()); QTC_ASSERT(state() == AdapterStarting, qDebug() << state());
setState(AdapterStarted);
emit adapterStarted(); emit adapterStarted();
} }
......
...@@ -93,7 +93,6 @@ void RemoteGdbAdapter::startAdapter() ...@@ -93,7 +93,6 @@ void RemoteGdbAdapter::startAdapter()
void RemoteGdbAdapter::handleGdbStarted() void RemoteGdbAdapter::handleGdbStarted()
{ {
QTC_ASSERT(state() == AdapterStarting, qDebug() << state()); QTC_ASSERT(state() == AdapterStarting, qDebug() << state());
setState(AdapterStarted);
emit adapterStarted(); emit adapterStarted();
} }
......
...@@ -1563,7 +1563,6 @@ void TrkGdbAdapter::maybeAdapterStarted() ...@@ -1563,7 +1563,6 @@ void TrkGdbAdapter::maybeAdapterStarted()
{ {
QTC_ASSERT(state() == AdapterStarting, qDebug() << state()); QTC_ASSERT(state() == AdapterStarting, qDebug() << state());
if (m_gdbProc.state() == QProcess::Running && m_trkDevice.isOpen()) { if (m_gdbProc.state() == QProcess::Running && m_trkDevice.isOpen()) {
setState(AdapterStarted);
emit adapterStarted(); emit adapterStarted();
} }
} }
......
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