1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 341406: "Connect to process" button in the debug view does nothing while target is running in all-stop

This commit is contained in:
Marc Khouzam 2011-05-04 20:22:10 +00:00
parent 15b027091d
commit b4c146eeed

View file

@ -121,6 +121,15 @@ public class GDBProcesses_7_2 extends GDBProcesses_7_1 {
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;
}