<div dir="ltr">Some context:<br><a href="https://discourse.llvm.org/t/rfc-improve-dwarf-5-debug-names-type-lookup-parsing-speed/74151/44">https://discourse.llvm.org/t/rfc-improve-dwarf-5-debug-names-type-lookup-parsing-speed/74151/44</a><br><a href="https://github.com/llvm/llvm-project/pull/77457">https://github.com/llvm/llvm-project/pull/77457</a><br><br>Essentially clang/llvm produces DW_IDX_parent with DW_FORM_flag_present when the entry has a parent, but that parent isn't indexed (I think this mostly comes up for the entities that are direct children of the unit DIE).<br><br>This is designed to make it more efficient for consumers (lldb, in particular) to do quicker comparisons from the index for qualified names.<br><br>My vague recollection is the idea that the consumer needs that info to know the difference between "this thing may or may not have a parent" and "this thing has an unnamed/unindexed parent".<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Aug 31, 2024 at 1:03 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">Dwarf5. The Name Table .debug_names<br>
<br>
Background:<br>
6.1.1.2, page 141<br>
Parent debugging information entry, a reference to the<br>
index entry for the parent. This is represented as the<br>
offset of the entry relative to the start of the entry<br>
pool.<br>
<br>
Table 7.232 Name index attribute encodings<br>
       DW_IDX_parent constant<br>
<br>
<br>
However clang version 18.1.8 generates<br>
<br>
DW_IDX_parent      DW_FORM_flag_present<br>
when there is no parent entry to refer to.<br>
<br>
And that does not seem to match what DWARF5<br>
says to do.<br>
<br>
So what is 'true' supposed to mean for DW_IDX_parent?<br>
<br>
A bit puzzled here.<br>
Thanks for any insight.<br>
David Anderson<br>
<br>
--<br>
Lisp Users: Due to the holiday next<br>
Monday, there will be no garbage<br>
collection. --seen on Slashdot<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>