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:
parent
c52732cf99
commit
c1be110cad
3 changed files with 6 additions and 6 deletions
|
@ -20,7 +20,7 @@ public interface ICDIRuntimeOptions {
|
||||||
*
|
*
|
||||||
* @param args the string representing the arguments.
|
* @param args the string representing the arguments.
|
||||||
*/
|
*/
|
||||||
void setArguments(String args);
|
void setArguments(String[] args);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Program/Inferior environment settings.
|
* Program/Inferior environment settings.
|
||||||
|
|
|
@ -36,13 +36,13 @@ public class RuntimeOptions implements ICDIRuntimeOptions {
|
||||||
/**
|
/**
|
||||||
* @see org.eclipse.cdt.debug.core.cdi.ICDIRuntimeOptions#setArguments(String)
|
* @see org.eclipse.cdt.debug.core.cdi.ICDIRuntimeOptions#setArguments(String)
|
||||||
*/
|
*/
|
||||||
public void setArguments(String args) {
|
public void setArguments(String[] args) {
|
||||||
if (args == null || args.length() == 0) {
|
if (args == null || args.length == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
MISession mi = session.getMISession();
|
MISession mi = session.getMISession();
|
||||||
CommandFactory factory = mi.getCommandFactory();
|
CommandFactory factory = mi.getCommandFactory();
|
||||||
MIExecArguments arguments = factory.createMIExecArguments(new String[]{args});
|
MIExecArguments arguments = factory.createMIExecArguments(args);
|
||||||
try {
|
try {
|
||||||
mi.postCommand(arguments);
|
mi.postCommand(arguments);
|
||||||
MIInfo info = arguments.getMIInfo();
|
MIInfo info = arguments.getMIInfo();
|
||||||
|
|
|
@ -144,8 +144,8 @@ public class LocalCLaunchConfigurationDelegate extends AbstractCLaunchDelegate {
|
||||||
e);
|
e);
|
||||||
throw new CoreException(status);
|
throw new CoreException(status);
|
||||||
}
|
}
|
||||||
ICDIRuntimeOptions opt = dsession.getRuntimeOptions();
|
ICDIRuntimeOptions opt = dsession.getRuntimeOptions();
|
||||||
opt.setArguments(config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, ""));
|
opt.setArguments(getProgramArgumentsArray(config));
|
||||||
File wd = getWorkingDir(config);
|
File wd = getWorkingDir(config);
|
||||||
if (wd != null) {
|
if (wd != null) {
|
||||||
opt.setWorkingDirectory(wd.toString());
|
opt.setWorkingDirectory(wd.toString());
|
||||||
|
|
Loading…
Add table
Reference in a new issue