Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2015-06-30 14:12:41 +0000
committerAnton Leherbauer2015-06-30 14:12:41 +0000
commit79d71d5e24d9fb8418699ab861673e4519c2fe62 (patch)
tree43896acecf0ce3814c2c8b97aee4c69eaaacb6bb /target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.cdt
parent5e6ee86bef17e7771ba54bdb29b3a4f93909ac4f (diff)
downloadorg.eclipse.tcf-79d71d5e24d9fb8418699ab861673e4519c2fe62.tar.gz
org.eclipse.tcf-79d71d5e24d9fb8418699ab861673e4519c2fe62.tar.xz
org.eclipse.tcf-79d71d5e24d9fb8418699ab861673e4519c2fe62.zip
Target Explorer: Use gdbserver --once to allow reusing the same port
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.cdt')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.cdt/src/org/eclipse/tcf/te/tcf/launch/cdt/launching/TEGdbAbstractLaunchDelegate.java2
1 files changed, 1 insertions, 1 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 74970a337..9392b7000 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
@@ -172,7 +172,7 @@ public abstract class TEGdbAbstractLaunchDelegate extends GdbLaunchDelegate {
commandArguments = "--once --multi :" + gdbserverPortNumber.get(); //$NON-NLS-1$
monitor.setTaskName(Messages.TEGdbAbstractLaunchDelegate_attaching_program);
} else {
- commandArguments = ":" + gdbserverPortNumber.get() + " " + TEHelper.spaceEscapify(remoteExePath); //$NON-NLS-1$ //$NON-NLS-2$
+ commandArguments = "--once :" + gdbserverPortNumber.get() + " " + TEHelper.spaceEscapify(remoteExePath); //$NON-NLS-1$ //$NON-NLS-2$
String arguments = getProgramArguments(config);
String prelaunchCmd = config.getAttribute(IRemoteTEConfigurationConstants.ATTR_PRERUN_COMMANDS, ""); //$NON-NLS-1$

Back to the top