[Dwarf-discuss] Enhancement: Dynamic DW_AT_data_bit_offset

2025-04-17 Thread Tom Tromey via Dwarf-discuss
Consider the appended Ada program. Here, the offset of "Another_Field" is a non-constant number of bits from the start of the object. I think there is no way to represent this in DWARF 5. Section 5.7.6, page 119 says: For a DW_AT_data_bit_offset attribute, the value is an integer consta

Re: [Dwarf-discuss] Representing captured `this` in C++ lambdas

2025-04-17 Thread Cary Coutant via Dwarf-discuss
Alternatively, what if DW_AT_object_pointer could also take a locdesc-class with a location description? Then, in cases where 'this' is not a formal parameter, it could provide a location description in the same manner as the other captured locals you mentioned (presumably with an fbreg-based compu