<div dir="ltr"><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">One way to fix this would be to lift the "integer constant" restriction<br>
and allow an expression here.</blockquote><div><br></div><div>Yes, that would be a reasonable thing to do for DWARF 6. I'm kind of surprised we didn't allow an expression for DW_AT_data_bit_offset from the start, especially given that it was allowed for the old DW_AT_bit_offset.</div><div><br></div><div>Anyway, given the permissive nature of DWARF, you could go ahead and use DW_FORM_exprloc for this attribute in DWARF 4 or 5, as long as compiler and debugger agree on it. We can work to standardize that in DWARF 6.</div><div><br></div><div>-cary</div><div><br></div></div></div>