[Lldb-commits] [lldb] [lldb-dap] Reuse source object logics (PR #141426)

Ely Ronnen via lldb-commits lldb-commits at lists.llvm.org
Wed May 28 14:05:22 PDT 2025


================

----------------
eronnen wrote:

Looking at the `SBTarget::ResolveSymbolContextForAddress()`  implementation it won't apply source maps correctly because it doesn't set the target to the symbol context at any point. in order to apply the source maps you must have `sc.target_sp` set:

```cpp
if ((resolve_scope & eSymbolContextLineEntry) && sc.line_entry.IsValid())
  sc.line_entry.ApplyFileMappings(sc.target_sp);
```

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


More information about the lldb-commits mailing list