[Lldb-commits] [lldb] [lldb] Don't create instance of `SymbolFileDWARFDebugMap` for non-Mach-O files (PR #139170)

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Thu May 8 16:04:09 PDT 2025


================
@@ -246,6 +247,8 @@ llvm::StringRef SymbolFileDWARFDebugMap::GetPluginDescriptionStatic() {
 }
 
 SymbolFile *SymbolFileDWARFDebugMap::CreateInstance(ObjectFileSP objfile_sp) {
+  if (objfile_sp->GetPluginName() != ObjectFileMachO::GetPluginNameStatic())
+    return nullptr;
----------------
adrian-prantl wrote:

Who is calling this? I'm wondering if the check might make more sense at the call site?

https://github.com/llvm/llvm-project/pull/139170


More information about the lldb-commits mailing list