Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Khodjaiants2007-02-06 07:18:47 -0500
committerMikhail Khodjaiants2007-02-06 07:18:47 -0500
commit6f31902628f0b146dfa1656d16d6bd3b25f51b5d (patch)
tree7f038787913246f17ba1ec73cf01107f1d54d5b7
parenta69ea0774915592d73f413b1f90e9512754188b6 (diff)
downloadorg.eclipse.cdt-6f31902628f0b146dfa1656d16d6bd3b25f51b5d.tar.gz
org.eclipse.cdt-6f31902628f0b146dfa1656d16d6bd3b25f51b5d.tar.xz
org.eclipse.cdt-6f31902628f0b146dfa1656d16d6bd3b25f51b5d.zip
Bug 173036: target-download "file" is not supported.
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/CommandFactory.java10
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/MITargetDownload.java12
2 files changed, 15 insertions, 7 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/CommandFactory.java b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/CommandFactory.java
index 81f2480e92..c64631f388 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/CommandFactory.java
+++ b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/CommandFactory.java
@@ -299,9 +299,13 @@ public class CommandFactory {
return new MITargetDetach(getMIVersion());
}
- public MITargetSelect createMITargetSelect(String[] params) {
- return new MITargetSelect(getMIVersion(), params);
- }
+ public MITargetDownload createMITargetDownload(String file) {
+ return new MITargetDownload(getMIVersion(), file);
+ }
+
+ public MITargetSelect createMITargetSelect(String[] params) {
+ return new MITargetSelect(getMIVersion(), params);
+ }
public MIThreadListIds createMIThreadListIds() {
return new MIThreadListIds(getMIVersion());
diff --git a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/MITargetDownload.java b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/MITargetDownload.java
index 3528722487..972e4d1bec 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/MITargetDownload.java
+++ b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/MITargetDownload.java
@@ -26,9 +26,13 @@ package org.eclipse.cdt.debug.mi.core.command;
* total-sent="512",total-size="9880"}
*
*/
-public class MITargetDownload extends MICommand
-{
- public MITargetDownload(String miVersion) {
- super(miVersion, "-target-download"); //$NON-NLS-1$
+public class MITargetDownload extends MICommand {
+
+ public MITargetDownload(String miVersion) {
+ super(miVersion, "-target-download"); //$NON-NLS-1$
+ }
+
+ public MITargetDownload(String miVersion, String file) {
+ super(miVersion, "-target-download", new String[] { file }); //$NON-NLS-1$
}
}

Back to the top