[Lldb-commits] [lldb] [DRAFT] Add support for inline DWARF source files. (PR #75880)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Mon Dec 18 17:30:31 PST 2023


================
@@ -235,6 +236,51 @@ ParseSupportFilesFromPrologue(const lldb::ModuleSP &module,
   for (size_t idx = first_file_idx; idx <= last_file_idx; ++idx) {
     std::string remapped_file;
     if (auto file_path = GetFileByIndex(prologue, idx, compile_dir, style)) {
+      auto entry = prologue.getFileNameEntry(idx);
+      auto source = entry.Source.getAsCString();
+      if (!source)
+        consumeError(source.takeError());
----------------
clayborg wrote:

So if there is no embedded source contents for this file, there will be no source here? What happens for older DWARF here?

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


More information about the lldb-commits mailing list