Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2011-05-05 15:31:25 -0400
committerMarc Khouzam2011-05-05 15:31:25 -0400
commitd1cb95f6ed5c7dae0efe297144b968718d87a1c1 (patch)
treece86f9aca9d9aec9a0e75bf7f7ae01d6fd42523a
parent93b8e523031cfe0b8c60da612672016e28284869 (diff)
downloadorg.eclipse.cdt-d1cb95f6ed5c7dae0efe297144b968718d87a1c1.tar.gz
org.eclipse.cdt-d1cb95f6ed5c7dae0efe297144b968718d87a1c1.tar.xz
org.eclipse.cdt-d1cb95f6ed5c7dae0efe297144b968718d87a1c1.zip
Bug 344890: Once we support starting a new process on a remote target, we should not use -exec-continue for that case, we must use -exec-run
-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