[Lldb-commits] [lldb] [lldb] Don't use Module's SymbolFileFileSpec to determine debug info (PR #210206)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 20 09:03:50 PDT 2026


================
@@ -283,7 +283,7 @@ ModuleSP DynamicLoader::LoadBinaryWithUUIDAndAddress(
 
     // If we haven't found a binary, or we don't have a SymbolFile, see
     // if there is an external search tool that can find it.
-    if (!module_sp || !module_sp->GetSymbolFileFileSpec()) {
+    if (!module_sp || !module_sp->GetSymbolFile(/*can_create=*/true)) {
----------------
JDevlieghere wrote:

This tests "was a symbol vendor created" but that doesn't necessary imply we have debug info. AFAIK this returns a non-null SymbolFileSymtab for any binary with a symbol table. I think we should check the symbol's file abilities (e.g. CompileUnits/LineTables) here.

It also looks like this returns `nullptr` when someone raises the interrupt mechanism. So we're going to start calling DownloadObjectAndSymbolFile and probably make things take even longer especially for the operation the user wanted to interrupt.

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


More information about the lldb-commits mailing list