[Lldb-commits] [lldb] r327162 - [SymbolFilePDB] Keep searching until the file name is found for the pdb compiland
Aaron Smith via lldb-commits
lldb-commits at lists.llvm.org
Fri Mar 9 10:50:19 PST 2018
Author: asmith
Date: Fri Mar 9 10:50:19 2018
New Revision: 327162
URL: http://llvm.org/viewvc/llvm-project?rev=327162&view=rev
Log:
[SymbolFilePDB] Keep searching until the file name is found for the pdb compiland
Reviewers: zturner, rnk, lldb-commits
Reviewed By: zturner
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D44182
Modified:
lldb/trunk/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
Modified: lldb/trunk/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp?rev=327162&r1=327161&r2=327162&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp Fri Mar 9 10:50:19 2018
@@ -627,9 +627,10 @@ std::string SymbolFilePDB::GetSourceFile
auto file_extension = file_spec.GetFileNameExtension();
if (pdb_lang == PDB_Lang::Cpp || pdb_lang == PDB_Lang::C) {
static const char* exts[] = { "cpp", "c", "cc", "cxx" };
- if (llvm::is_contained(exts, file_extension.GetStringRef().lower()))
+ if (llvm::is_contained(exts, file_extension.GetStringRef().lower())) {
source_file_name = file_up->getFileName();
- break;
+ break;
+ }
} else if (pdb_lang == PDB_Lang::Masm &&
ConstString::Compare(file_extension, ConstString("ASM"),
false) == 0) {
More information about the lldb-commits
mailing list