debugger: use the direct access withing trkadapter to list threads

This commit is contained in:
hjk
2010-02-08 12:39:25 +01:00
parent f0314d0f66
commit 0bde89eee3
5 changed files with 38 additions and 14 deletions

View File

@@ -198,7 +198,10 @@ void GdbEngine::updateAllPython()
postCommand("-stack-list-frames", WatchUpdate, CB(handleStackListFrames),
QVariant::fromValue<StackCookie>(StackCookie(false, true)));
manager()->stackHandler()->setCurrentIndex(0);
if (supportsThreads())
qDebug() << "IS TRK: " << m_gdbAdapter->isTrkAdapter();
if (m_gdbAdapter->isTrkAdapter())
m_gdbAdapter->trkReloadThreads();
else
postCommand("-thread-list-ids", WatchUpdate, CB(handleStackListThreads), 0);
manager()->reloadRegisters();
updateLocals();