Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2020-01-07 21:34:25 +0000
committerEugene Tarassov2020-01-08 06:22:40 +0000
commit1e2362e3f6f06e459cfda57685b7c3e8488dd9d3 (patch)
tree5c5713e50da352b02843a00561b1d245c303ba8a
parentd19815cf89d5ed7878a56ebf499ed09afa9ff566 (diff)
downloadorg.eclipse.tcf-1e2362e3f6f06e459cfda57685b7c3e8488dd9d3.tar.gz
org.eclipse.tcf-1e2362e3f6f06e459cfda57685b7c3e8488dd9d3.tar.xz
org.eclipse.tcf-1e2362e3f6f06e459cfda57685b7c3e8488dd9d3.zip
TCF Tests: GDB: Detaching a process continues its execution
-rw-r--r--tests/plugins/org.eclipse.tcf.debug.gdb.test/src/org/eclipse/tcf/debug/gdb/test/TestThread.java22
1 files changed, 7 insertions, 15 deletions
diff --git a/tests/plugins/org.eclipse.tcf.debug.gdb.test/src/org/eclipse/tcf/debug/gdb/test/TestThread.java b/tests/plugins/org.eclipse.tcf.debug.gdb.test/src/org/eclipse/tcf/debug/gdb/test/TestThread.java
index 1c1441d71..a3eabfe2a 100644
--- a/tests/plugins/org.eclipse.tcf.debug.gdb.test/src/org/eclipse/tcf/debug/gdb/test/TestThread.java
+++ b/tests/plugins/org.eclipse.tcf.debug.gdb.test/src/org/eclipse/tcf/debug/gdb/test/TestThread.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2017 Xilinx, Inc. and others.
+ * Copyright (c) 2017-2020 Xilinx, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -137,20 +137,6 @@ class TestThread extends Thread {
if (!std_err.lst.get(0).startsWith("1: "))
throw new Exception("Invalid 'mon ps' reply: list");
- cmd("detach");
- if (std_out.lst.size() < 1)
- throw new Exception("Invalid 'detach' reply: cnt < 1");
- if (!std_out.lst.get(0).startsWith("Detaching from program"))
- throw new Exception("Invalid 'detach' reply");
-
- cmd("disconnect");
- if (std_out.lst.size() < 1)
- throw new Exception("Invalid 'disconnect' reply: cnt < 1");
- if (!std_out.lst.get(0).startsWith("Ending remote debugging"))
- throw new Exception("Invalid 'disconnect' reply");
-
- cmd("target extended-remote " + host + ":" + port);
-
for (int pass = 0; pass < 10; pass++) {
cmd("info thread");
@@ -346,6 +332,12 @@ class TestThread extends Thread {
if (!std_out.lst.get(0).startsWith("No threads."))
throw new Exception("Invalid 'info threads' reply");
+ cmd("disconnect");
+ if (std_out.lst.size() < 1)
+ throw new Exception("Invalid 'disconnect' reply: cnt < 1");
+ if (!std_out.lst.get(0).startsWith("Ending remote debugging"))
+ throw new Exception("Invalid 'disconnect' reply");
+
cmd("quit");
prs.waitFor();
std_out.join();

Back to the top