[Dwarf-discuss] Location expressions for partially-optimized-out structs

Kyle Huey khuey@pernos.co
Wed Feb 28 05:45:56 GMT 2024

On Tue, Feb 27, 2024 at 9:35 PM Cary Coutant <ccoutant@gmail.com> wrote:
> > The text for DW_OP_bit_piece, on the other hand, does explicitly
> > contemplate this, containing the language:
> >
> > If the location description is empty, the offset doesn’t matter and
> > the DW_OP_bit_piece operation describes a piece consisting of the
> > given number of bits whose values are undefined.
> >
> > I propose adding similar language to the description of DW_OP_piece. e.g.
> This has been clarified for DWARF 6; see:
>     https://dwarfstd.org/issues/181205.1.html
> -cary

Mmm, the location where that was inserted seems odd. I specifically
looked at the latest working draft for something like this before
sending my email and didn't find it, although I do see if now that I
know the exact text to search for. Is there a reason it's not in the
DW_OP_piece specific subsection (especially since the language in the
DW_OP_bit_piece subsection is still there), or in the first paragraph

- Kyle

More information about the Dwarf-discuss mailing list