debugger: run tests only after view is fully populated.

Change-Id: I730b35f9384d672a613e79842b21709a12b9a95f
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-12-14 15:32:48 +01:00
committed by hjk
parent 04a88cf1e1
commit b60f464c64
2 changed files with 11 additions and 15 deletions

View File

@@ -1636,7 +1636,7 @@ void GdbEngine::handleStop1(const GdbMi &data)
if (name == stopSignal(sp.toolChainAbi)) {
showMessage(_(name + " CONSIDERED HARMLESS. CONTINUING."));
} else {
showMessage(_("HANDLING SIGNAL" + name));
showMessage(_("HANDLING SIGNAL " + name));
if (debuggerCore()->boolSetting(UseMessageBoxForSignals)
&& !isStopperThread)
showStoppedBySignalMessageBox(_(meaning), _(name));
@@ -2278,20 +2278,16 @@ void GdbEngine::handleExecuteReturn(const GdbResponse &response)
void GdbEngine::setTokenBarrier()
{
if (m_nonDiscardableCount > 0) {
showMessage(_("--- CANNOT SET TOKEN BARRIER: "), LogMiscInput);
foreach (const GdbCommand &cookie, m_cookieForToken)
showMessage(QString::fromLatin1("CMD: %1, FLAGS: %2")
.arg(_(cookie.command)).arg(cookie.flags), LogMiscInput);
QTC_ASSERT(false, return);
return;
}
QTC_ASSERT(m_nonDiscardableCount > 0, /**/);
bool good = true;
foreach (const GdbCommand &cookie, m_cookieForToken) {
if (!(cookie.flags & Discardable)) {
qDebug() << "CMD:" << cookie.command
<< " FLAGS:" << cookie.flags
<< " CALLBACK:" << cookie.callbackName;
QHashIterator<int, GdbCommand> it(m_cookieForToken);
while (it.hasNext()) {
it.next();
if (!(it.value().flags & Discardable)) {
qDebug() << "TOKEN: " << it.key()
<< "CMD:" << it.value().command
<< " FLAGS:" << it.value().flags
<< " CALLBACK:" << it.value().callbackName;
good = false;
}
}
@@ -3970,6 +3966,7 @@ void GdbEngine::rebuildWatchModel()
showStatusMessage(tr("Finished retrieving data"), 400);
watchHandler()->endCycle();
showToolTip();
handleAutoTests();
}
static QByteArray arrayFillCommand(const char *array, const QByteArray &params)

View File

@@ -193,7 +193,6 @@ void GdbEngine::handleStackFramePython(const GdbResponse &response)
}
if (!partial)
emit stackFrameCompleted();
handleAutoTests();
} else {
showMessage(_("DUMPER FAILED: " + response.toString()));
}