From 18c2d84781f6e8056f33edaaf3018ccc01d860b6 Mon Sep 17 00:00:00 2001 From: Marc-Andre Laperle Date: Mon, 3 Sep 2018 20:36:47 -0400 Subject: [PATCH] Bug 503298 - [lldb] Remove workaround for executable not being absolute The underlying issue was fixed in CDT in commit 783787a. Also, even if that code changes under the rug, lldb might be fixed to handle the working directory anyway. See https://bugs.llvm.org/show_bug.cgi?id=30265 Change-Id: I8654ec6c601b49fbfb8258c1a80b95c84021410d Signed-off-by: Marc-Andre Laperle --- .../lldb/core/internal/launching/LLDBLaunch.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/llvm/org.eclipse.cdt.llvm.dsf.lldb.core/src/org/eclipse/cdt/llvm/dsf/lldb/core/internal/launching/LLDBLaunch.java b/llvm/org.eclipse.cdt.llvm.dsf.lldb.core/src/org/eclipse/cdt/llvm/dsf/lldb/core/internal/launching/LLDBLaunch.java index d5be2dc03e0..0c3baa1fdb3 100644 --- a/llvm/org.eclipse.cdt.llvm.dsf.lldb.core/src/org/eclipse/cdt/llvm/dsf/lldb/core/internal/launching/LLDBLaunch.java +++ b/llvm/org.eclipse.cdt.llvm.dsf.lldb.core/src/org/eclipse/cdt/llvm/dsf/lldb/core/internal/launching/LLDBLaunch.java @@ -391,20 +391,6 @@ public class LLDBLaunch extends GdbLaunch { return null; } - @Override - public String getProgramPath() throws CoreException { - IPath path = new Path(super.getProgramPath()); - - // FIXME: LLDB-MI only accepts absolute paths for the program. But this - // seems to work with the latest version in SVN trunk (Mac) so we will - // need to find out in which version this was or will be fixed and stop - // doing this work-around if possible. - if (!path.isAbsolute()) { - path = getGDBWorkingDirectory().append(path); - } - return path.toOSString(); - } - /** * Returns whether or not the LLDB use by this launch has the given trait. *