1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

2005-08-31 Alain Magloire

Fix Pr 107571: Part of this fix is to add the
	inferior process in the session
	* src/org/eclipse/cdt/launch/internal/LocalAttachLaunchDelegate.java
This commit is contained in:
Alain Magloire 2005-08-31 17:36:31 +00:00
parent 9511669ee0
commit 155525b0ea
2 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-08-31 Alain Magloire
Fix Pr 107571: Part of this fix is to add the
inferior process in the session
* src/org/eclipse/cdt/launch/internal/LocalAttachLaunchDelegate.java
2005-08-25 Mikhail Khodjaiants
Bug 66446: Use the debugger path as a debugger process label.
Deprecated the "renderDebuggerProcessLabel" method.

View file

@ -37,6 +37,7 @@ import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
import org.eclipse.debug.core.ILaunchManager;
import org.eclipse.debug.core.IStatusHandler;
import org.eclipse.debug.core.model.IProcess;
public class LocalAttachLaunchDelegate extends AbstractCLaunchDelegate {
@ -104,8 +105,14 @@ public class LocalAttachLaunchDelegate extends AbstractCLaunchDelegate {
setDefaultSourceLocator(launch, config);
ICDITarget[] targets = dsession.getTargets();
for (int i = 0; i < targets.length; i++) {
Process process = targets[i].getProcess();
IProcess iprocess = null;
if (process != null) {
iprocess = DebugPlugin.newProcess(launch, process, renderProcessLabel(exePath.toOSString()), getDefaultProcessMap());
}
CDIDebugModel.newDebugTarget(launch, cproject.getProject(), targets[i],
renderTargetLabel(debugConfig), null, exeFile, true, true, false);
renderTargetLabel(debugConfig), iprocess, exeFile, true, true, false);
}
} catch (CoreException e) {
try {