From aa93e5c7ccf1835bcd12069e8462cd14de680711 Mon Sep 17 00:00:00 2001 From: Simeon Andreev Date: Wed, 4 Jul 2018 15:33:18 +0200 Subject: Bug 536648 - Thread evaluation runs in parallel with thread label update When running an evaluation on a thread suspension, its possible that a label update of the Debug View runs in parallel. The label update can then retrieve the intermediate state of the evaluation. If no further label update is issued, the thread will be shown as running until the Debug View is refreshed. With this change, suspending a thread after an evaluation will also update the thread state in the Debug View. This avoids the wrong running icon of the thread. Change-Id: Id6ec6a9d48c041d0b2617adb8b7da91ba5140b15 Signed-off-by: Simeon Andreev --- .../eclipse/debug/internal/ui/viewers/update/ThreadEventHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/ThreadEventHandler.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/ThreadEventHandler.java index dece8b1d9..c30102aac 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/ThreadEventHandler.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/ThreadEventHandler.java @@ -69,7 +69,7 @@ public class ThreadEventHandler extends DebugEventHandler { if (event.isEvaluation()) { ModelDelta delta = buildRootDelta(); ModelDelta node = addPathToThread(delta, thread); - node = node.addNode(thread, IModelDelta.NO_CHANGE); + node = node.addNode(thread, IModelDelta.STATE); try { IStackFrame frame = thread.getTopStackFrame(); if (frame != null) { -- cgit v1.2.3