OSDN Git Service

[DWARF] Modification of code for the verification of .debug_info section.
authorSpyridoula Gravani <sgravani@apple.com>
Tue, 18 Jul 2017 01:00:26 +0000 (01:00 +0000)
committerSpyridoula Gravani <sgravani@apple.com>
Tue, 18 Jul 2017 01:00:26 +0000 (01:00 +0000)
commit0ea156d8ef9aeced09528be7b80e23b5b034c66b
tree5b19ca96e8e7cb4546a6babbdb13dbb21236a7fe
parentbc231539864f522e8c752c112c9e131ea286cfff
[DWARF] Modification of code for the verification of .debug_info section.

Summary:
This patch modifies the handleDebugInfo() function so that we verify the contents of each unit
in the .debug_info section only if its header has been successfully verified.

This change will allow for more/different verification checks depending on the type of the unit since from
dwarf5, the .debug_info section may consist of different types of units.

Subscribers: aprantl

Differential Revision: https://reviews.llvm.org/D35521

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308245 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/DWARF/DWARFVerifier.h
lib/DebugInfo/DWARF/DWARFContext.cpp
lib/DebugInfo/DWARF/DWARFVerifier.cpp
test/tools/llvm-dwarfdump/X86/verify_debug_info.s [new file with mode: 0644]