[Lldb-commits] [lldb] [lldb] Add DWARFExpressionEntry and GetExpressionEntryAtAddress() to … (PR #144238)

Abdullah Mohammad Amin via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 7 19:12:47 PDT 2025


================
@@ -53,6 +54,38 @@ bool DWARFExpressionList::ContainsAddress(lldb::addr_t func_load_addr,
   return GetExpressionAtAddress(func_load_addr, addr) != nullptr;
 }
 
+std::optional<DWARFExpressionList::DWARFExpressionEntry>
+DWARFExpressionList::GetExpressionEntryAtAddress(lldb::addr_t func_load_addr,
+                                                lldb::addr_t load_addr) const {
+  if (const DWARFExpression *always = GetAlwaysValidExpr()) {
+    AddressRange full_range(m_func_file_addr, /*size=*/LLDB_INVALID_ADDRESS);
----------------
UltimateForce21 wrote:

I believe you are right it is safer and probably more clear for users, as well.


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


More information about the lldb-commits mailing list