mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 00:45:28 +02:00
2004-10-18 Alain Magloire
Adjust to changes in CDI * src/org/eclipse/cdt/launch/internal/LocalRunLaunchDelegate.java
This commit is contained in:
parent
442e988240
commit
1f3df7b1c7
2 changed files with 14 additions and 7 deletions
|
@ -1,3 +1,7 @@
|
|||
2004-10-18 Alain Magloire
|
||||
Adjust to changes in CDI
|
||||
* src/org/eclipse/cdt/launch/internal/LocalRunLaunchDelegate.java
|
||||
|
||||
2004-10-18 David Inglis
|
||||
|
||||
Update to new ICDIDebugger interface deprecating old
|
||||
|
|
|
@ -21,8 +21,8 @@ import org.eclipse.cdt.debug.core.CDIDebugModel;
|
|||
import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants;
|
||||
import org.eclipse.cdt.debug.core.ICDebugConfiguration;
|
||||
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDIRuntimeOptions;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDISession;
|
||||
import org.eclipse.cdt.debug.core.cdi.model.ICDIRuntimeOptions;
|
||||
import org.eclipse.cdt.debug.core.cdi.model.ICDITarget;
|
||||
import org.eclipse.cdt.launch.AbstractCLaunchDelegate;
|
||||
import org.eclipse.cdt.launch.internal.ui.LaunchMessages;
|
||||
|
@ -71,13 +71,16 @@ public class LocalRunLaunchDelegate extends AbstractCLaunchDelegate {
|
|||
if (debugMode.equals(ICDTLaunchConfigurationConstants.DEBUGGER_MODE_RUN)) {
|
||||
dsession = debugConfig.createDebugger().createDebuggerSession(launch, exeFile, new SubProgressMonitor(monitor, 8));
|
||||
try {
|
||||
ICDIRuntimeOptions opt = dsession.getRuntimeOptions();
|
||||
opt.setArguments(arguments);
|
||||
File wd = getWorkingDirectory(config);
|
||||
if (wd != null) {
|
||||
opt.setWorkingDirectory(wd.getAbsolutePath());
|
||||
ICDITarget[] dtargets = dsession.getTargets();
|
||||
for (int i = 0; i < dtargets.length; ++i) {
|
||||
ICDIRuntimeOptions opt = dtargets[i].getRuntimeOptions();
|
||||
opt.setArguments(arguments);
|
||||
File wd = getWorkingDirectory(config);
|
||||
if (wd != null) {
|
||||
opt.setWorkingDirectory(wd.getAbsolutePath());
|
||||
}
|
||||
opt.setEnvironment(expandEnvironment(config));
|
||||
}
|
||||
opt.setEnvironment(expandEnvironment(config));
|
||||
} catch (CDIException e) {
|
||||
try {
|
||||
dsession.terminate();
|
||||
|
|
Loading…
Add table
Reference in a new issue