[PATCH] D143513: [DebugInfo] Allow parsing line tables aligned to 4 or 8-byte boundaries
Paul Robinson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 13 12:04:17 PST 2023
probinson added a project: debug-info.
probinson added a comment.
+debug-info tag.
It's true that DWARF doesn't require the per-unit .debug_line chunks to be adjacent, which makes life difficult for dumpers who want to read just the .debug_line section (without parsing .debug_info headers). Debuggers with an edit-and-continue feature can dynamically replace bits of the line table, though, and in those cases padding is handy. That would usually be a bigger lump than just alignment, though. Just curious, what compiler(s) are aligning line-tables?
================
Comment at: llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp:1544
+ // .debug_line section to a word multiple. Note that in the specification this
+ // does not seem forbidden since each unit as a DW_AT_stmt_list.
+ std::array PossibleAlignments{4, 8};
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143513/new/
https://reviews.llvm.org/D143513
More information about the llvm-commits
mailing list