1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

changed runtimeoption arguments to String[]

This commit is contained in:
David Inglis 2002-09-03 14:47:45 +00:00
parent c52732cf99
commit c1be110cad
3 changed files with 6 additions and 6 deletions

View file

@ -20,7 +20,7 @@ public interface ICDIRuntimeOptions {
*
* @param args the string representing the arguments.
*/
void setArguments(String args);
void setArguments(String[] args);
/**
* Program/Inferior environment settings.

View file

@ -36,13 +36,13 @@ public class RuntimeOptions implements ICDIRuntimeOptions {
/**
* @see org.eclipse.cdt.debug.core.cdi.ICDIRuntimeOptions#setArguments(String)
*/
public void setArguments(String args) {
if (args == null || args.length() == 0) {
public void setArguments(String[] args) {
if (args == null || args.length == 0) {
return;
}
MISession mi = session.getMISession();
CommandFactory factory = mi.getCommandFactory();
MIExecArguments arguments = factory.createMIExecArguments(new String[]{args});
MIExecArguments arguments = factory.createMIExecArguments(args);
try {
mi.postCommand(arguments);
MIInfo info = arguments.getMIInfo();

View file

@ -144,8 +144,8 @@ public class LocalCLaunchConfigurationDelegate extends AbstractCLaunchDelegate {
e);
throw new CoreException(status);
}
ICDIRuntimeOptions opt = dsession.getRuntimeOptions();
opt.setArguments(config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, ""));
ICDIRuntimeOptions opt = dsession.getRuntimeOptions();
opt.setArguments(getProgramArgumentsArray(config));
File wd = getWorkingDir(config);
if (wd != null) {
opt.setWorkingDirectory(wd.toString());