Skip to main content
summaryrefslogtreecommitdiffstats
path: root/jtag
diff options
context:
space:
mode:
authorMarc Khouzam2011-02-18 14:49:18 -0500
committerMarc Khouzam2011-02-18 14:49:18 -0500
commit82a91d1c7f375cf98e1f8ef81191282329e55a27 (patch)
tree3b0596b5a22ab99eb8957dec58f46d0c9bac8d9e /jtag
parent8f4483669835bba65dd9ce9f3c0ecc3728e42de9 (diff)
downloadorg.eclipse.cdt-82a91d1c7f375cf98e1f8ef81191282329e55a27.tar.gz
org.eclipse.cdt-82a91d1c7f375cf98e1f8ef81191282329e55a27.tar.xz
org.eclipse.cdt-82a91d1c7f375cf98e1f8ef81191282329e55a27.zip
Bug 337602: Setting program arguments should be done per process
Diffstat (limited to 'jtag')
-rw-r--r--jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java
index 43d2a7d6da..7c669a1646 100644
--- a/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java
+++ b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java
@@ -51,6 +51,7 @@ import org.eclipse.cdt.dsf.mi.service.CSourceLookup;
import org.eclipse.cdt.dsf.mi.service.IMIContainerDMContext;
import org.eclipse.cdt.dsf.mi.service.IMIProcesses;
import org.eclipse.cdt.dsf.mi.service.MIBreakpointsManager;
+import org.eclipse.cdt.dsf.mi.service.MIProcesses;
import org.eclipse.cdt.dsf.mi.service.command.CommandFactory;
import org.eclipse.cdt.dsf.mi.service.command.commands.CLICommand;
import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo;
@@ -212,8 +213,10 @@ public class GDBJtagDSFFinalLaunchSequence extends Sequence {
String args = fGDBBackend.getProgramArguments();
if (args != null) {
+ String[] argArray = args.replaceAll("\n", " ").split(" "); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ IMIContainerDMContext containerDmc = fProcService.createContainerContextFromGroupId(fCommandControl.getContext(), MIProcesses.UNIQUE_GROUP_ID);
fCommandControl.queueCommand(
- fCommandFactory.createMIGDBSetArgs(fCommandControl.getContext(), args),
+ fCommandFactory.createMIGDBSetArgs(containerDmc, argArray),
new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor));
} else {
requestMonitor.done();

Back to the top