mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-21 21:52:10 +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 ICDITarget cdiTarget,
|
||||||
final String name,
|
final String name,
|
||||||
final IProcess process,
|
final IProcess process,
|
||||||
// final IProject project,
|
final IProject project,
|
||||||
final boolean allowTerminate,
|
final boolean allowTerminate,
|
||||||
final boolean allowDisconnect,
|
final boolean allowDisconnect,
|
||||||
final boolean stopInMain ) throws DebugException
|
final boolean stopInMain ) throws DebugException
|
||||||
|
@ -92,7 +92,7 @@ public class CDebugModel
|
||||||
cdiTarget,
|
cdiTarget,
|
||||||
name,
|
name,
|
||||||
process,
|
process,
|
||||||
null, // project,
|
project,
|
||||||
allowTerminate,
|
allowTerminate,
|
||||||
allowDisconnect );
|
allowDisconnect );
|
||||||
}
|
}
|
||||||
|
|
|
@ -115,11 +115,12 @@ public class LocalCLaunchConfigurationDelegate extends AbstractCLaunchDelegate {
|
||||||
Process process = dtarget.getProcess();
|
Process process = dtarget.getProcess();
|
||||||
IProcess iprocess = DebugPlugin.newProcess(launch, process, renderProcessLabel((String [])command.toArray(new String[command.size()])));
|
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);
|
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 {
|
else {
|
||||||
Process process = exec((String [])command.toArray(new String[command.size()]), getEnvironmentArray(config), getWorkingDir(config));
|
String []commandArray = (String [])command.toArray(new String[command.size()]);
|
||||||
DebugPlugin.getDefault().newProcess(launch, process, "label");
|
Process process = exec(commandArray, getEnvironmentArray(config), getWorkingDir(config));
|
||||||
|
DebugPlugin.getDefault().newProcess(launch, process, renderProcessLabel(commandArray));
|
||||||
}
|
}
|
||||||
monitor.done();
|
monitor.done();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue