This patch adds two new verifications:
- Check that the root DIE of a CU is actually a valid unit DIE. (based on its tag)
- For DWARF5 which contains a unit type int he CU header, check that this matches the type of the unit DIE.
Paths
| Differential D38453
[dwarfdump] Verify that unit type matches root DIE ClosedPublic Authored by JDevlieghere on Oct 2 2017, 4:40 AM.
Details Summary This patch adds two new verifications:
Diff Detail
Event TimelineJDevlieghere added inline comments.
This revision is now accepted and ready to land.Oct 6 2017, 10:51 AM
JDevlieghere added inline comments.
Closed by commit rL315121: [dwarfdump] Verify that unit type matches root DIE (authored by JDevlieghere). · Explain WhyOct 6 2017, 3:29 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 117325 include/llvm/DebugInfo/DWARF/DWARFUnit.h
include/llvm/DebugInfo/DWARF/DWARFVerifier.h
lib/DebugInfo/DWARF/DWARFVerifier.cpp
test/DebugInfo/dwarfdump-header.test
test/tools/llvm-dwarfdump/X86/empty-CU.s
test/tools/llvm-dwarfdump/X86/verify_debug_info.s
test/tools/llvm-dwarfdump/X86/verify_unit_header_chain.s
|
Should we move these two into Dwarf.h as isUnitTag ?