[Lldb-commits] [lldb] [LLDB] Expose enumerator for separate-debug-info in SBModule (PR #144119)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 8 13:56:11 PDT 2026


================
@@ -1663,3 +1663,11 @@ DataFileCache *Module::GetIndexCache() {
                             .GetPath());
   return g_data_file_cache;
 }
+
+lldb_private::ModuleSpecList Module::GetSeparateDebugInfoFiles() {
+  SymbolFile *symfile = GetSymbolFile(false);
----------------
clayborg wrote:

You probably want to pass in true for `can_create`:
```
SymbolFile *symfile = GetSymbolFile(/*can_create=*/true);
```
Otherwise if the symbol file hasn't been loaded or created yet you will not create it and you will get nothing back.

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


More information about the lldb-commits mailing list