[Lldb-commits] [PATCH] D44182: [SymbolFilePDB] Keep searching until the file name is found for the pdb compiland
Aaron Smith via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Mar 9 10:52:42 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL327162: [SymbolFilePDB] Keep searching until the file name is found for the pdb… (authored by asmith, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D44182?vs=137298&id=137798#toc
Repository:
rL LLVM
https://reviews.llvm.org/D44182
Files:
lldb/trunk/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
Index: lldb/trunk/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
===================================================================
--- lldb/trunk/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
+++ lldb/trunk/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
@@ -627,9 +627,10 @@
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) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44182.137798.patch
Type: text/x-patch
Size: 911 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180309/c19ba8db/attachment.bin>
More information about the lldb-commits
mailing list