debugger: fix display of correct thread in the thread combobox

This commit is contained in:
hjk
2010-07-21 13:11:03 +02:00
parent 57c96ee3a9
commit dfd44a0ceb
6 changed files with 26 additions and 30 deletions

View File

@@ -2913,8 +2913,10 @@ void GdbEngine::handleThreadInfo(const GdbResponse &response)
threads.append(thread);
}
threadsHandler()->setThreads(threads);
const int currentThreadId = response.data.findChild("current-thread-id").data().toInt();
const int currentThreadId =
response.data.findChild("current-thread-id").data().toInt();
threadsHandler()->setCurrentThreadId(currentThreadId);
plugin()->updateState(this); // Adjust Threads combobox.
} else {
// Fall back for older versions: Try to get at least a list
// of running threads.