forked from qt-creator/qt-creator
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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user