1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

Bug 66446: Use the debugger path as a debugger process label.

This commit is contained in:
Mikhail Khodjaiants 2005-08-25 21:44:59 +00:00
parent 541144055f
commit c8e4f80647
2 changed files with 13 additions and 4 deletions

View file

@ -1,3 +1,7 @@
2005-08-25 Mikhail Khodjaiants
Bug 66446: Use the debugger path as a debugger process label.
* src/org/eclipse/cdt/debug/mi/core/GDBCDIDebugger.java
2005-07-28 Alain Magloire
Fix Pr 104421: The register did not update.
* cdi/org/eclipse/cdt/debug/mi/core/cdi/RegisterManager.java

View file

@ -80,7 +80,7 @@ public class GDBCDIDebugger implements ICDIDebugger {
for (int i = 0; i < dtargets.length; i++) {
Process debugger = dsession.getSessionProcess(dtargets[i]);
if (debugger != null) {
IProcess debuggerProcess = DebugPlugin.newProcess(launch, debugger, renderDebuggerProcessLabel());
IProcess debuggerProcess = DebugPlugin.newProcess(launch, debugger, renderDebuggerProcessLabel(config));
launch.addProcess(debuggerProcess);
}
}
@ -252,11 +252,16 @@ public class GDBCDIDebugger implements ICDIDebugger {
return fLaunch;
}
protected String renderDebuggerProcessLabel() {
protected String renderDebuggerProcessLabel(ILaunchConfiguration config) {
String format = "{0} ({1})"; //$NON-NLS-1$
String timestamp = DateFormat.getInstance().format(new Date(System.currentTimeMillis()));
String message = MIPlugin.getResourceString("src.GDBDebugger.Debugger_process"); //$NON-NLS-1$
return MessageFormat.format(format, new String[]{message, timestamp}); //$NON-NLS-1$
String label = MIPlugin.getResourceString("src.GDBDebugger.Debugger_process"); //$NON-NLS-1$
try {
label = config.getAttribute(IMILaunchConfigurationConstants.ATTR_DEBUG_NAME, "gdb"); //$NON-NLS-1$
}
catch( CoreException e ) {
}
return MessageFormat.format(format, new String[]{label, timestamp}); //$NON-NLS-1$
}
/**