Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2015-05-27 04:03:45 -0400
committerUwe Stieber2015-05-27 04:03:45 -0400
commit3b52396ad51f30db9170aff9efc273ae95d3f324 (patch)
tree9ffe1effbab9b9badda24dd6a6a747fefa939945
parente18c137763ed3b9e18da266f016679d859f87850 (diff)
downloadorg.eclipse.tcf-3b52396ad51f30db9170aff9efc273ae95d3f324.tar.gz
org.eclipse.tcf-3b52396ad51f30db9170aff9efc273ae95d3f324.tar.xz
org.eclipse.tcf-3b52396ad51f30db9170aff9efc273ae95d3f324.zip
Target Explorer: Add --once option for launched gdbserver in attach mode
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.cdt/src/org/eclipse/tcf/te/tcf/launch/cdt/launching/TEGdbAbstractLaunchDelegate.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.cdt/src/org/eclipse/tcf/te/tcf/launch/cdt/launching/TEGdbAbstractLaunchDelegate.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.cdt/src/org/eclipse/tcf/te/tcf/launch/cdt/launching/TEGdbAbstractLaunchDelegate.java
index 4d6ae8904..b674b10a8 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.cdt/src/org/eclipse/tcf/te/tcf/launch/cdt/launching/TEGdbAbstractLaunchDelegate.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.cdt/src/org/eclipse/tcf/te/tcf/launch/cdt/launching/TEGdbAbstractLaunchDelegate.java
@@ -149,7 +149,6 @@ public abstract class TEGdbAbstractLaunchDelegate extends GdbLaunchDelegate {
ProcessLauncher launcher = null;
final AtomicBoolean gdbserverLaunchRetry = new AtomicBoolean(false);
-// final AtomicBoolean portRangeExceeded = new AtomicBoolean(false);
final AtomicInteger indexAlternatives = new AtomicInteger(0);
do {
@@ -163,7 +162,7 @@ public abstract class TEGdbAbstractLaunchDelegate extends GdbLaunchDelegate {
String commandArguments = ""; //$NON-NLS-1$
if (isAttachLaunch) {
- commandArguments = "--attach :" + gdbserverPortNumber.get() + " " + remotePID; //$NON-NLS-1$ //$NON-NLS-2$
+ commandArguments = "--once --attach :" + gdbserverPortNumber.get() + " " + remotePID; //$NON-NLS-1$ //$NON-NLS-2$
monitor.setTaskName(Messages.TEGdbAbstractLaunchDelegate_attaching_program);
} else {
commandArguments = ":" + gdbserverPortNumber.get() + " " + TEHelper.spaceEscapify(remoteExePath); //$NON-NLS-1$ //$NON-NLS-2$

Back to the top