We were unconditionally comparing the DW_AT_ranges offset to the length of the .debug_ranges section. For DWARF5 we should look at the debug_rnglists section instead.
Details
Details
Diff Detail
Diff Detail
- Repository
 - rG LLVM Github Monorepo
 
Event Timeline
Comment Actions
Seems reasonable. Nitpick inside :-)
thanks!
| llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp | ||
|---|---|---|
| 467 | is there a RangeSection.getName()? Because on Mach-O the section would technically be called __debug_ranges, for example.  | |
| llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp | ||
|---|---|---|
| 467 | Not currently. But that does sound like a good improvement, which we should apply everywhere. Below for example ".debug_line" is also printed as part of the error message.  | |
is there a RangeSection.getName()? Because on Mach-O the section would technically be called __debug_ranges, for example.