]> git.ipfire.org Git - thirdparty/elfutils.git/commit
dwarflint: Don't assert in check_debug_info can trigger an assert.
authorMark Wielaard <mjw@redhat.com>
Mon, 11 Apr 2011 11:55:58 +0000 (13:55 +0200)
committerMark Wielaard <mjw@redhat.com>
Mon, 11 Apr 2011 11:55:58 +0000 (13:55 +0200)
commitb054bb07802775f0b2810fb9a05c72ca289cb169
tree964a4ea528523faf5e0957193e9d45afc75242cd
parent6dc02e72b9c3e7709d68199cdac11f08f540511e
dwarflint: Don't assert in check_debug_info can trigger an assert.

Instead of asserting a form must exist, let form_class () return
max_dw_class, like ambiguous_class () does. max_dw_class is already
used as sentinel in read_die_chain () in case the attribute is unknown.
This lets things work out for the low level check_debug_info check and
then makes the higher-level checks complain about the unexpected form
instead. Added an example binary and test dwarflint/tests/run-upper.sh.
dwarflint/Makefile.am
dwarflint/check_debug_info.cc
dwarflint/dwarf_version.cc
dwarflint/tests/run-upper.sh [new file with mode: 0755]
dwarflint/tests/upper.bz2 [new file with mode: 0755]