[PATCH] D44736: DWARFVerifier: verify debug_names abbreviation table

Pavel Labath via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 21 07:20:56 PDT 2018


labath created this revision.
labath added reviewers: JDevlieghere, aprantl, dblaikie.

This commit adds checks of the abbreviation table in a DWARF v5 Name
Index. The most interesting/useful check is the one which checks that
each index attributes is encoded using the correct form class, but it
also checks for the more obvious errors like unknown
forms/tags/attributes and duplicated attributes.


Repository:
  rL LLVM

https://reviews.llvm.org/D44736

Files:
  include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h
  include/llvm/DebugInfo/DWARF/DWARFVerifier.h
  lib/DebugInfo/DWARF/DWARFVerifier.cpp
  test/tools/llvm-dwarfdump/X86/debug-names-verify-abbrev-forms.s
  test/tools/llvm-dwarfdump/X86/debug-names-verify-no-buckets.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44736.139291.patch
Type: text/x-patch
Size: 11866 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180321/c0b0f6c5/attachment.bin>


More information about the llvm-commits mailing list