Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2008-01-17 22:53:51 +0000
committerDarin Wright2008-01-17 22:53:51 +0000
commit0532fa85864090ed536181955e6bd5aed3363241 (patch)
tree9cbffea8d1268f2a3010d74858613daa854cb0f5 /org.eclipse.debug.ui
parent1f8789c1631bd4e3537ae41813a639233647072a (diff)
downloadeclipse.platform.debug-0532fa85864090ed536181955e6bd5aed3363241.tar.gz
eclipse.platform.debug-0532fa85864090ed536181955e6bd5aed3363241.tar.xz
eclipse.platform.debug-0532fa85864090ed536181955e6bd5aed3363241.zip
Bug 215723 - Attempt to reveal the call stack when stopped
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/ThreadEventHandler.java10
1 files changed, 8 insertions, 2 deletions
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 aa952bb45..275a5f962 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
@@ -86,8 +86,14 @@ public class ThreadEventHandler extends DebugEventHandler {
} else {
queueSuspendedThread(event);
int extras = IModelDelta.STATE;
- if (event.getDetail() == DebugEvent.BREAKPOINT | event.getDetail() == DebugEvent.CLIENT_REQUEST) {
- extras = IModelDelta.EXPAND;
+ switch (event.getDetail()) {
+ case DebugEvent.BREAKPOINT:
+ // on breakpoint also position thread to be top element
+ extras = IModelDelta.EXPAND | IModelDelta.REVEAL;
+ break;
+ case DebugEvent.CLIENT_REQUEST:
+ extras = IModelDelta.EXPAND;
+ break;
}
fireDeltaUpdatingSelectedFrame(thread, IModelDelta.NO_CHANGE | extras, event);
}

Back to the top