File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
llvm/org.eclipse.cdt.llvm.dsf.lldb.core/src/org/eclipse/cdt/llvm/dsf/lldb/core/internal/launching Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*******************************************************************************
2
- * Copyright (c) 2016 Ericsson.
2
+ * Copyright (c) 2016, 2025 Ericsson and others .
3
3
*
4
4
* This program and the accompanying materials
5
5
* are made available under the terms of the Eclipse Public License 2.0
6
6
* which accompanies this distribution, and is available at
7
7
* https://www.eclipse.org/legal/epl-2.0/
8
8
*
9
9
* SPDX-License-Identifier: EPL-2.0
10
+ * Contributors:
11
+ * Ericsson - Initial implementation
12
+ * John Dallaway - Tolerate lldb-mi installations without lldb (#1186)
10
13
*******************************************************************************/
11
14
12
15
package org .eclipse .cdt .llvm .dsf .lldb .core .internal .launching ;
@@ -161,7 +164,11 @@ private void computeLLDBVersions() throws CoreException {
161
164
lastSegment = lastSegment .replace (ILLDBConstants .LLDB_MI_EXECUTABLE_NAME ,
162
165
ILLDBConstants .LLDB_EXECUTABLE_NAME );
163
166
}
167
+ boolean isLldbMiAbsolute = lldbMiPath .isAbsolute () && lldbMiPath .toFile ().exists ();
164
168
lldbMiPath = lldbMiPath .removeLastSegments (1 ).append (lastSegment );
169
+ if (isLldbMiAbsolute && !lldbMiPath .toFile ().exists ()) {
170
+ return ; // lldb is not found in the containing folder of lldb-mi
171
+ }
165
172
166
173
String cmd = lldbMiPath + " --version" ; //$NON-NLS-1$
167
174
You can’t perform that action at this time.
0 commit comments