diff options
author | Darin Wright | 2004-07-28 18:19:41 +0000 |
---|---|---|
committer | Darin Wright | 2004-07-28 18:19:41 +0000 |
commit | 15d12ee821b8c674365ff5f57be6902f7149b1ad (patch) | |
tree | a64860c470d0fd7b8bef90b9acdf75a07688ac51 | |
parent | c9a77da8a7210492c130390c0c88221dfaa6a37a (diff) | |
download | eclipse.jdt.debug-15d12ee821b8c674365ff5f57be6902f7149b1ad.tar.gz eclipse.jdt.debug-15d12ee821b8c674365ff5f57be6902f7149b1ad.tar.xz eclipse.jdt.debug-15d12ee821b8c674365ff5f57be6902f7149b1ad.zip |
[r301] Bug 70993 - incompatible thread state from drop to frame actionr301_v20040803
-rw-r--r-- | org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIStackFrame.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIStackFrame.java b/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIStackFrame.java index d87df5830..540486bf3 100644 --- a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIStackFrame.java +++ b/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIStackFrame.java @@ -36,6 +36,7 @@ import org.eclipse.jdt.internal.debug.core.JDIDebugPlugin; import com.sun.jdi.AbsentInformationException; import com.sun.jdi.Field; +import com.sun.jdi.IncompatibleThreadStateException; import com.sun.jdi.LocalVariable; import com.sun.jdi.Method; import com.sun.jdi.NativeMethodException; @@ -566,6 +567,10 @@ public class JDIStackFrame extends JDIDebugElement implements IJavaStackFrame { } return false; } catch (DebugException e) { + if (e.getStatus().getException() instanceof IncompatibleThreadStateException) { + // if the thread has since resumed, drop is not supported + return false; + } logError(e); } catch (UnsupportedOperationException e) { // drop to frame not supported - this is an expected |