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

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 16 07:37:03 PDT 2025


================
@@ -59,6 +59,18 @@ class DWARFExpressionList {
 
   lldb::addr_t GetFuncFileAddress() { return m_func_file_addr; }
 
+  /// Represents an entry in the DWARFExpressionList with all needed metadata
+  struct DWARFExpressionEntry {
+    lldb::addr_t base;
+    lldb::addr_t end;
+    const DWARFExpression *expr;
+  };
+
+  /// Returns the entry (base, end, data) for a given PC address
----------------
JDevlieghere wrote:

```suggestion
  /// Returns the DWARFExpressionEntry for a given PC address.
```
Why not reference the struct here so you don't have to keep the comment in sync if we ever add new fields?

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


More information about the lldb-commits mailing list