forked from qt-creator/qt-creator
Debugger: Make updateThreads() a setThreads()
(and keep updateThread() for the single-thread case) All backends create full lists, making that explicit allows to simplify the interface. Change-Id: I717cfcf3ec9f8e81df8a5dfc71ae84855bc3beae Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -2983,12 +2983,7 @@ void GdbEngine::handleThreadInfo(const DebuggerResponse &response)
|
||||
{
|
||||
if (response.resultClass == ResultDone) {
|
||||
ThreadsHandler *handler = threadsHandler();
|
||||
handler->updateThreads(response.data);
|
||||
// This is necessary as the current thread might not be in the list.
|
||||
if (!handler->currentThread()) {
|
||||
if (Thread other = handler->threadAt(0))
|
||||
selectThread(other);
|
||||
}
|
||||
handler->setThreads(response.data);
|
||||
updateState(false); // Adjust Threads combobox.
|
||||
if (boolSetting(ShowThreadNames)) {
|
||||
runCommand({"threadnames " + action(MaximalStackDepth)->value().toString(),
|
||||
|
||||
Reference in New Issue
Block a user