[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
Thu Jan 29 12:48:55 PST 2026
================
@@ -1277,6 +1277,20 @@ void SymbolFileDWARFDebugMap::DumpClangAST(Stream &s, llvm::StringRef filter) {
});
}
+lldb_private::ModuleSpecList
+SymbolFileDWARFDebugMap::GetSeparateDebugInfoFiles() {
+ const uint32_t cu_count = GetNumCompileUnits();
+ lldb_private::ModuleSpecList spec_list;
+ for (uint32_t cu_idx = 0; cu_idx < cu_count; ++cu_idx) {
+ const auto &info = m_compile_unit_infos[cu_idx];
+ if (info.so_file.GetPath().empty())
+ continue;
+
+ spec_list.Append(lldb_private::FileSpec(info.oso_path));
----------------
clayborg wrote:
The modification time of the .o file should be filled into the ModuleSpec.m_object_mod_time, the m_file_spec should be the .o file name or the .a file name, if the m_file_spec is a .a file name then the m_object_name should be set to the .o file name.
https://github.com/llvm/llvm-project/pull/144119
More information about the lldb-commits
mailing list