Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/StartOrRestartProcessSequence_7_0.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/StartOrRestartProcessSequence_7_0.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/StartOrRestartProcessSequence_7_0.java
index 2b59de4dc6c..a466f628e1d 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/StartOrRestartProcessSequence_7_0.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/StartOrRestartProcessSequence_7_0.java
@@ -439,13 +439,15 @@ public class StartOrRestartProcessSequence_7_0 extends ReflectionSequence {
* This method can be overridden to allow for customization.
*/
protected boolean useContinueCommand() {
- // When doing remote debugging, we use -exec-continue instead of -exec-run
- // Restart does not apply to remote sessions
+ // Note that restart does not apply to remote sessions
IGDBBackend backend = fTracker.getService(IGDBBackend.class);
if (backend == null) {
return false;
}
- return backend.getSessionType() == SessionType.REMOTE;
+ // When doing remote non-attach debugging, we use -exec-continue instead of -exec-run
+ // For remote attach, if we get here it is that we are starting a new process
+ // (multi-process), so we want to use -exec-run
+ return backend.getSessionType() == SessionType.REMOTE && !backend.getIsAttachSession();
}
} \ No newline at end of file

Back to the top