From 18831f14fe92175b93c277f4152d5a2bd7954394 Mon Sep 17 00:00:00 2001 From: David Inglis Date: Wed, 21 Aug 2002 02:04:22 +0000 Subject: [PATCH] fixed process label when run added Mikhail's changes --- .../src/org/eclipse/cdt/debug/core/CDebugModel.java | 4 ++-- .../launch/internal/LocalCLaunchConfigurationDelegate.java | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugModel.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugModel.java index 90d6516f8e0..79b4e7bab15 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugModel.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugModel.java @@ -78,7 +78,7 @@ public class CDebugModel final ICDITarget cdiTarget, final String name, final IProcess process, -// final IProject project, + final IProject project, final boolean allowTerminate, final boolean allowDisconnect, final boolean stopInMain ) throws DebugException @@ -92,7 +92,7 @@ public class CDebugModel cdiTarget, name, process, - null, // project, + project, allowTerminate, allowDisconnect ); } diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/LocalCLaunchConfigurationDelegate.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/LocalCLaunchConfigurationDelegate.java index 937156e8033..5f7335f518f 100644 --- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/LocalCLaunchConfigurationDelegate.java +++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/LocalCLaunchConfigurationDelegate.java @@ -115,11 +115,12 @@ public class LocalCLaunchConfigurationDelegate extends AbstractCLaunchDelegate { Process process = dtarget.getProcess(); IProcess iprocess = DebugPlugin.newProcess(launch, process, renderProcessLabel((String [])command.toArray(new String[command.size()]))); boolean stopInMain = config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN, false); - CDebugModel.newDebugTarget(launch, dsession.getTargets()[0], dbgCfg.getName(), iprocess, true, false, stopInMain ); + CDebugModel.newDebugTarget(launch, dsession.getTargets()[0], dbgCfg.getName(), iprocess, exe.getProject(), true, false, stopInMain ); } else { - Process process = exec((String [])command.toArray(new String[command.size()]), getEnvironmentArray(config), getWorkingDir(config)); - DebugPlugin.getDefault().newProcess(launch, process, "label"); + String []commandArray = (String [])command.toArray(new String[command.size()]); + Process process = exec(commandArray, getEnvironmentArray(config), getWorkingDir(config)); + DebugPlugin.getDefault().newProcess(launch, process, renderProcessLabel(commandArray)); } monitor.done(); }