]> git.ipfire.org Git - thirdparty/elfutils.git/commit
Check optional/expected/required attributes
authorPetr Machata <pmachata@redhat.com>
Fri, 20 Feb 2009 14:31:21 +0000 (15:31 +0100)
committerPetr Machata <pmachata@redhat.com>
Fri, 20 Feb 2009 14:31:21 +0000 (15:31 +0100)
commitb14502ee27ac53e9d8375157c01870f239fd0910
treec3e32c61dc7bd04802f144aeb5ab3272c2e0289f
parent51ac392b397c7265fa03d3395d70d63d1184385a
Check optional/expected/required attributes

* The code currently iterates over tree of DIEs.  This will be necessary
  for checking parent vs. expected children, but for attributes, it's an
  overkill, and we should check abbreviation table instead.  Also, this
  way, we report each mistake in abbreviation table separately for each
  DIE that uses the erroneous entry.

* All attributes are marked optional.  In future, we need to go through
  the standard, or employ some other source of knowledge (hi, Roland!),
  and adjust the optionality level.

* Vast majority of entries are derived from the table in Appendix A of the
  standard.  Some were added to reflect what I found in several debuginfo
  test cases that I've tried to check.  These entries are marked with
  "XXX" comment to distinguish them from the rest.
src/dwarflint-hl.cc
src/dwarflint.c
src/dwarflint.h