1
0
Fork 0
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:
Torbjörn Svensson 2020-06-29 19:28:02 +02:00 committed by Marc-André Laperle
parent 9043b4b511
commit 0798984bc8

View file

@ -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);