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

Ely Ronnen via lldb-commits lldb-commits at lists.llvm.org
Tue May 27 23:46:28 PDT 2025


================
@@ -252,4 +252,11 @@ std::string GetSBFileSpecPath(const lldb::SBFileSpec &file_spec) {
   return path;
 }
 
+lldb::SBLineEntry GetLineEntryForAddress(lldb::SBTarget &target,
+                                         lldb::SBAddress &address) {
+  lldb::SBSymbolContext sc =
+      address.GetSymbolContext(target, lldb::eSymbolContextLineEntry);
+  return sc.GetLineEntry();
----------------
eronnen wrote:

Same reason as above, the current `SBAdress::GetLineEntry` don't apply source maps because it doesn't have the target information

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


More information about the lldb-commits mailing list