Extracted from D74773. Currently, errors happened while parsing
debug info are reported as errors. DebugInfoDWARF library treats such
errors as "Recoverable errors". This patch makes debug info errors
to be reported as warnings, to support DebugInfoDWARF approach.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lld/test/ELF/gdb-index-parse-fail.s | ||
---|---|---|
5 | To have one or zero "(.debug_info):". Please check that description https://reviews.llvm.org/D74773#inline-683778 |
lld/test/ELF/gdb-index-invalid-ranges.s | ||
---|---|---|
8–10 | Same comments as in the other test - why has the text changed in this patch when all you've done is change the severity of this error? | |
lld/test/ELF/gdb-index-parse-fail.s | ||
5 | But isn't in this patch this output unchanged from before? The only change in the text should be error -> warning. |
Some DWARF producer bugs (e.g. D75375) will change from an error to a warning. I think it is fine.
// clang -c -gdwarf-5 a.s -o a.o .section .init; ret .text; ret
ld.lld --gdb-index a.o
You can strip some Phabricator metadata tags, BTW:
% which arcfilter arcfilter () { git log -1 --pretty=%B | awk '/Reviewers:|Subscribers:/{p=1} /Reviewed By:|Differential Revision:/{p=0} !p && !/^Summary:/' | git commit --amend -F - }
Downgrading an error to a warning is fine.