Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2011-05-04 20:22:10 +0000
committerMarc Khouzam2011-05-04 20:22:10 +0000
commitb4c146eeeda5a8049527996428152bf2baa70a29 (patch)
tree69d17cf425593089548b0ee6bc7feb5d6982f09c
parent15b027091d3a6ea951bb64bba288da8de9a9fd56 (diff)
downloadorg.eclipse.cdt-b4c146eeeda5a8049527996428152bf2baa70a29.tar.gz
org.eclipse.cdt-b4c146eeeda5a8049527996428152bf2baa70a29.tar.xz
org.eclipse.cdt-b4c146eeeda5a8049527996428152bf2baa70a29.zip
Bug 341406: "Connect to process" button in the debug view does nothing while target is running in all-stop
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBProcesses_7_2.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBProcesses_7_2.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBProcesses_7_2.java
index bc49c5c775f..c4d8d637988 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBProcesses_7_2.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBProcesses_7_2.java
@@ -120,6 +120,15 @@ public class GDBProcesses_7_2 extends GDBProcesses_7_1 {
if (fBackend.getSessionType() == SessionType.REMOTE && !fBackend.getIsAttachSession()) {
return false;
}
+
+ // Multi-process does not work for all-stop right now
+ IMIRunControl runControl = getServicesTracker().getService(IMIRunControl.class);
+ if (runControl != null && runControl.getRunMode() == MIRunMode.ALL_STOP) {
+ // Only one process is allowed in all-stop (for now)
+ return getNumConnected() == 0;
+ // NOTE: when we support multi-process in all-stop mode,
+ // we will need to interrupt the target to when doing the attach.
+ }
return true;
}

Back to the top