mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 06:02:11 +02:00
fixed process label when run
added Mikhail's changes
This commit is contained in:
parent
76353eb064
commit
18831f14fe
2 changed files with 6 additions and 5 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue