mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +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:
parent
9511669ee0
commit
155525b0ea
2 changed files with 13 additions and 1 deletions
|
@ -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
|
2005-08-25 Mikhail Khodjaiants
|
||||||
Bug 66446: Use the debugger path as a debugger process label.
|
Bug 66446: Use the debugger path as a debugger process label.
|
||||||
Deprecated the "renderDebuggerProcessLabel" method.
|
Deprecated the "renderDebuggerProcessLabel" method.
|
||||||
|
|
|
@ -37,6 +37,7 @@ import org.eclipse.debug.core.ILaunchConfiguration;
|
||||||
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
|
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
|
||||||
import org.eclipse.debug.core.ILaunchManager;
|
import org.eclipse.debug.core.ILaunchManager;
|
||||||
import org.eclipse.debug.core.IStatusHandler;
|
import org.eclipse.debug.core.IStatusHandler;
|
||||||
|
import org.eclipse.debug.core.model.IProcess;
|
||||||
|
|
||||||
public class LocalAttachLaunchDelegate extends AbstractCLaunchDelegate {
|
public class LocalAttachLaunchDelegate extends AbstractCLaunchDelegate {
|
||||||
|
|
||||||
|
@ -104,8 +105,14 @@ public class LocalAttachLaunchDelegate extends AbstractCLaunchDelegate {
|
||||||
setDefaultSourceLocator(launch, config);
|
setDefaultSourceLocator(launch, config);
|
||||||
ICDITarget[] targets = dsession.getTargets();
|
ICDITarget[] targets = dsession.getTargets();
|
||||||
for (int i = 0; i < targets.length; i++) {
|
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],
|
CDIDebugModel.newDebugTarget(launch, cproject.getProject(), targets[i],
|
||||||
renderTargetLabel(debugConfig), null, exeFile, true, true, false);
|
renderTargetLabel(debugConfig), iprocess, exeFile, true, true, false);
|
||||||
}
|
}
|
||||||
} catch (CoreException e) {
|
} catch (CoreException e) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Reference in a new issue