- enhancement: Set lldb-mi as the debugger program for clang, when finding compiler set in folders and gdb doesn't exist.

This commit is contained in:
Roy Qu 2023-01-23 19:34:09 +08:00
parent 7d2920198e
commit 580a88721f
1 changed files with 4 additions and 4 deletions

View File

@ -2305,12 +2305,12 @@ void Settings::CompilerSet::setExecutables()
if (mCompilerType == CompilerType::Clang) {
mCCompiler = findProgramInBinDirs(CLANG_PROGRAM);
mCppCompiler = findProgramInBinDirs(CLANG_CPP_PROGRAM);
mDebugger = findProgramInBinDirs(LLDB_MI_PROGRAM);
mDebugger = findProgramInBinDirs(GDB_PROGRAM);
if (mDebugger.isEmpty()) {
mDebugger = findProgramInBinDirs(GDB_PROGRAM);
mDebugServer = findProgramInBinDirs(GDB_SERVER_PROGRAM);
} else {
mDebugger = findProgramInBinDirs(LLDB_MI_PROGRAM);
mDebugServer = findProgramInBinDirs(LLDB_SERVER_PROGRAM);
} else {
mDebugServer = findProgramInBinDirs(GDB_SERVER_PROGRAM);
}
if (mCCompiler.isEmpty())
mCCompiler = findProgramInBinDirs(GCC_PROGRAM);