[PATCH] D39854: [DWARFv5] Support FORM_strp in .debug_line.dwo

Paul Robinson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 10 10:30:37 PST 2017


probinson added inline comments.


================
Comment at: llvm/lib/DebugInfo/DWARF/DWARFContext.cpp:341
+    DWARFDataExtractor LineData(*DObj, DObj->getLineSection(), isLittleEndian(),
+                                0);
+    while (Offset < LineData.getData().size()) {
----------------
probinson wrote:
> JDevlieghere wrote:
> > Why don't we need the address byte size here anymore? I'm super excited you got rid of the "sketchy loop" below, but I'd like to understand why we can do without it. 
> Theoretically it can vary per unit.  The address size is still set below, inside the while loop, after we look up the unit associated with this part of the line-table section.
Technically I should set the address size to zero for a .debug_line portion with no associated unit.  If it's a v5 portion, we can establish the address size from the v5 header.  If it's not a v5 portion, then we should still be able to parse/dump the header, but we'd have to skip over the line-number program.  But I didn't want to get that far into things with this patch, there is some other lurking bug that will take a little time to track down.


https://reviews.llvm.org/D39854





More information about the llvm-commits mailing list