[Lldb-commits] [lldb] [DRAFT] Add support for inline DWARF source files. (PR #75880)
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Tue Dec 19 08:41:23 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());
----------------
adrian-prantl wrote:
`entry.Source.getAsCString()` only returns something if this is the inline source DWARF extension. If this is empty we're left with just a file path, like before.
https://github.com/llvm/llvm-project/pull/75880
More information about the lldb-commits
mailing list