Debugger[Trk]: Prepare thread handling.

Store threads and cache registers per thread in Snapshot.
As Trk does not generate Thread creation/deletion events.
try to add threads on the fly if a stop in a new thread id is reported.
Remove them in continue. Continue all threads in classic Trk.
Pass on state (crash reason) to ThreadData and model.
Factor out common code of both adapters to Snapshot/Symbian classes.
This commit is contained in:
Friedemann Kleint
2010-06-30 17:14:57 +02:00
parent 8254f8b24f
commit 52b33a7503
9 changed files with 820 additions and 613 deletions

View File

@@ -2761,8 +2761,8 @@ void GdbEngine::selectThread(int index)
threadsHandler()->setCurrentThread(index);
Threads threads = threadsHandler()->threads();
QTC_ASSERT(index < threads.size(), return);
int id = threads.at(index).id;
showStatusMessage(tr("Retrieving data for stack view..."), 10000);
const int id = threads.at(index).id;
showStatusMessage(tr("Retrieving data for stack view thread 0x%1...").arg(id, 0, 16), 10000);
postCommand("-thread-select " + QByteArray::number(id), CB(handleStackSelectThread));
}