[Lldb-commits] [lldb] [lldb] Don't create instance of `SymbolFileDWARFDebugMap` for non-Mach-O files (PR #139170)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Jun 4 21:57:54 PDT 2025
================
@@ -246,6 +246,9 @@ llvm::StringRef SymbolFileDWARFDebugMap::GetPluginDescriptionStatic() {
}
SymbolFile *SymbolFileDWARFDebugMap::CreateInstance(ObjectFileSP objfile_sp) {
+ // Don't create a debug map if the object file isn't a Mach-O.
+ if (!objfile_sp->GetArchitecture().GetTriple().isAppleMachO())
----------------
royitaqi wrote:
I think it makes sense to assert to make the requirement very clear. Added in latest commit. Thanks for the suggestion~!
--
Also fixed the comment in the test.
https://github.com/llvm/llvm-project/pull/139170
More information about the lldb-commits
mailing list