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.
|
||||
*/
|
||||
void setArguments(String args);
|
||||
void setArguments(String[] args);
|
||||
|
||||
/**
|
||||
* Program/Inferior environment settings.
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue