mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 08:55:25 +02:00
Bug 564553 - Restore mimicking label for LLDB
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se> Change-Id: I2c0db2de82478f3ed3434c9f722700ce0efe321c
This commit is contained in:
parent
9043b4b511
commit
0798984bc8
1 changed files with 11 additions and 0 deletions
|
@ -16,6 +16,7 @@ import org.eclipse.cdt.dsf.gdb.launching.GdbLaunch;
|
|||
import org.eclipse.cdt.dsf.gdb.launching.GdbLaunchDelegate;
|
||||
import org.eclipse.cdt.llvm.dsf.lldb.core.internal.service.LLDBServiceFactory;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.core.runtime.IPath;
|
||||
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||
import org.eclipse.debug.core.model.ISourceLocator;
|
||||
|
||||
|
@ -44,6 +45,16 @@ public class LLDBLaunchDelegate extends GdbLaunchDelegate {
|
|||
super(requireCProject);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getCLILabel(GdbLaunch launch, ILaunchConfiguration config, String gdbVersion)
|
||||
throws CoreException {
|
||||
IPath path = launch.getGDBPath();
|
||||
if (path == null) {
|
||||
path = LLDBLaunch.getLLDBPath(config);
|
||||
}
|
||||
return path.toString().trim() + " (" + Messages.LLDBLaunchDelegate_mimicking_gdb + " gdb " + gdbVersion + ")"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
}
|
||||
|
||||
@Override
|
||||
protected IDsfDebugServicesFactory newServiceFactory(ILaunchConfiguration config, String version) {
|
||||
return new LLDBServiceFactory(version, config);
|
||||
|
|
Loading…
Add table
Reference in a new issue