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:
hjk
2018-08-30 11:52:37 +02:00
parent 7125f6853d
commit 06f3d2bf10
5 changed files with 11 additions and 18 deletions

View File

@@ -656,7 +656,7 @@ void LldbEngine::updateAll()
{
DebuggerCommand cmd("fetchThreads");
cmd.callback = [this](const DebuggerResponse &response) {
threadsHandler()->updateThreads(response.data);
threadsHandler()->setThreads(response.data);
fetchStack(action(MaximalStackDepth)->value().toInt());
reloadRegisters();
};