<div dir="ltr">Added as Issue <a href="https://dwarfstd.org/issues/240618.2.html">240618.2</a>.<div><br></div><div>-cary</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 18, 2024 at 3:40 PM David Anderson via Dwarf-discuss <<a href="mailto:dwarf-discuss@lists.dwarfstd.org">dwarf-discuss@lists.dwarfstd.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">BACKGROUND:<br>
References are to DWARF5 unless otherwise indicated.<br>
<br>
<br>
If a split-full CU uses DW_FORM_rnglistx<br>
is a DW_AT_rnglists_base required?<br>
Apparently not, though<br>
in cases I have seen in object files are instances<br>
of a single rnglist in .debug_rnglists.dwo .<br>
The operative assumption is consumers will<br>
simply assume zero as the (missing)<br>
DW_AT_rnglists_base.<br>
<br>
Seen in llvm and gcc.<br>
<br>
The intent of this proposal is to get clarity.<br>
<br>
An alternative version could state<br>
If a Split Full Compilation Unit<br>
refers to .debug_rnglists.dwo<br>
with  DW_FORM_rnglistx<br>
the CU DIE must have a DW_AT_rnglists_base<br>
attribute.<br>
<br>
<br>
PROPOSAL:<br>
<br>
At the end Sec F.1 Overview just before<br>
Table F.1:<br>
<br>
If a Split Full Compilation Unit<br>
refers to .debug_rnglists.dwo<br>
with  DW_FORM_rnglistx<br>
and the correct DW_AT_rnglists_base<br>
would be zero, the DW_AT_rnglists_base<br>
may be omitted.<br>
<br>
David Anderson<br>
-- <br>
Dwarf-discuss mailing list<br>
<a href="mailto:Dwarf-discuss@lists.dwarfstd.org" target="_blank">Dwarf-discuss@lists.dwarfstd.org</a><br>
<a href="https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss" rel="noreferrer" target="_blank">https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss</a><br>
</blockquote></div>