Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2013-12-04 19:50:24 +0000
committerEugene Tarassov2013-12-04 19:50:24 +0000
commita3d519604d97339172fd5699c148630963f3abdc (patch)
tree4d29318c093acd4b9f89506a3ff7984fdca1ff45 /plugins/org.eclipse.tcf.debug/src
parentfd3c08423f2fafab7f39b76424e2efbd2ad16d06 (diff)
downloadorg.eclipse.tcf-a3d519604d97339172fd5699c148630963f3abdc.tar.gz
org.eclipse.tcf-a3d519604d97339172fd5699c148630963f3abdc.tar.xz
org.eclipse.tcf-a3d519604d97339172fd5699c148630963f3abdc.zip
TCF Tests: added reporting of PC and stepping errors in RCBP1 test
Diffstat (limited to 'plugins/org.eclipse.tcf.debug/src')
-rw-r--r--plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestRCBP1.java17
1 files changed, 16 insertions, 1 deletions
diff --git a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestRCBP1.java b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestRCBP1.java
index 6d4189bc5..749a08e58 100644
--- a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestRCBP1.java
+++ b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestRCBP1.java
@@ -21,6 +21,7 @@ import java.util.Map;
import java.util.Random;
import java.util.Set;
+import org.eclipse.tcf.core.Command;
import org.eclipse.tcf.internal.debug.model.TCFMemoryRegion;
import org.eclipse.tcf.protocol.IChannel;
import org.eclipse.tcf.protocol.IErrorReport;
@@ -1155,6 +1156,20 @@ class TestRCBP1 implements ITCFTest, RunControl.DiagnosticTestDone, IRunControl.
}
private void checkSuspendedContext(final SuspendedContext sc) {
+ if (sc.params != null) {
+ Object pc_err = sc.params.get(IRunControl.STATE_PC_ERROR);
+ if (pc_err != null) {
+ String msg = Command.toErrorString(pc_err);
+ exit(new Exception("PC error: " + msg));
+ return;
+ }
+ Object step_err = sc.params.get(IRunControl.STATE_STEP_ERROR);
+ if (step_err != null) {
+ String msg = Command.toErrorString(step_err);
+ exit(new Exception("Step error: " + msg));
+ return;
+ }
+ }
boolean my_breakpoint = isMyBreakpoint(sc);
if (main_thread_id == null && my_breakpoint) {
// Process main thread should be the first to hit a breakpoint in the test
@@ -1320,7 +1335,7 @@ class TestRCBP1 implements ITCFTest, RunControl.DiagnosticTestDone, IRunControl.
final SuspendedContext sc0 = sc;
ctx.getState(new IRunControl.DoneGetState() {
public void doneGetState(IToken token, Exception error, boolean susp,
- String pc, String reason, Map<String, Object> params) {
+ String pc, String reason, Map<String,Object> params) {
if (error != null) {
exit(new Exception("Cannot get context state", error));
}

Back to the top