Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LLDB: Print an error when lldb is below minimum version
Prevent users from using a version of lldb that is too old. Before version 3.8 there was a hang and other issues. If the version cannot be determined, the launch stil proceeds. This is because there is no good way to get the version from the lldb-mi executable but rather, we can only do a best-effort to get the version from the normal lldb executable. If the lldb executable is not present but the lldb-mi is, this is a valid way to use the debugger but the version cannot be determined. In the future, it would be better if the lldb-mi executable could report the lldb version directly. But this would be an improvement in lldb, not CDT. Change-Id: Ief8a4ebd3ea1e3d549a5cef41ac3030ec48734c4 Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
- Loading branch information
Showing
6 changed files
with
376 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...dt.llvm.dsf.lldb.core/src/org/eclipse/cdt/llvm/dsf/lldb/core/internal/ILLDBConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2016 Ericsson. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*******************************************************************************/ | ||
|
||
package org.eclipse.cdt.llvm.dsf.lldb.core.internal; | ||
|
||
/** | ||
* Constants related to the LLDB debugger itself. | ||
* | ||
* @noimplement This interface is not intended to be implemented by clients. | ||
*/ | ||
public interface ILLDBConstants { | ||
|
||
/** | ||
* The executable name for lldb-mi | ||
*/ | ||
public static final String LLDB_MI_EXECUTABLE_NAME = "lldb-mi"; //$NON-NLS-1$ | ||
|
||
/** | ||
* The executable name for lldb | ||
*/ | ||
public static final String LLDB_EXECUTABLE_NAME = "lldb"; //$NON-NLS-1$ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.