debugger: avoid a few watchmodel rebuilds, also reset location markers properly

This commit is contained in:
hjk
2010-03-10 17:39:08 +01:00
parent 5e7c972a3e
commit 3066162eb4
4 changed files with 25 additions and 24 deletions

View File

@@ -197,14 +197,13 @@ void GdbEngine::updateAllPython()
//PENDING_DEBUG("UPDATING ALL\n");
QTC_ASSERT(state() == InferiorUnrunnable || state() == InferiorStopped, /**/);
reloadModulesInternal();
postCommand("-stack-list-frames", WatchUpdate, CB(handleStackListFrames),
postCommand("-stack-list-frames", CB(handleStackListFrames),
QVariant::fromValue<StackCookie>(StackCookie(false, true)));
manager()->stackHandler()->setCurrentIndex(0);
qDebug() << "IS TRK: " << m_gdbAdapter->isTrkAdapter();
if (m_gdbAdapter->isTrkAdapter())
m_gdbAdapter->trkReloadThreads();
else
postCommand("-thread-list-ids", WatchUpdate, CB(handleStackListThreads), 0);
postCommand("-thread-list-ids", CB(handleStackListThreads), 0);
manager()->reloadRegisters();
updateLocals();
}