Author: jdevlieghere Date: Fri Jul 12 17:12:22 2019 New Revision: 365978 URL: http://llvm.org/viewvc/llvm-project?rev=365978&view=rev Log: [DWARFContext] Strip leading dot in section names
The LLVM context doesn't expect the leading dot in the section name. Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFContext.cpp Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFContext.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFContext.cpp?rev=365978&r1=365977&r2=365978&view=diff ============================================================================== --- lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFContext.cpp (original) +++ lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFContext.cpp Fri Jul 12 17:12:22 2019 @@ -116,6 +116,8 @@ llvm::DWARFContext &DWARFContext::GetAsL llvm::StringRef data = llvm::toStringRef(section_data.GetData()); llvm::StringRef name = section.GetName().GetStringRef(); + if (name.startswith(".")) + name = name.drop_front(); section_map.try_emplace( name, llvm::MemoryBuffer::getMemBuffer(data, name, false)); }; _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits