dwarf/die: Handle DW_FORM_flag_present in value translation (#246)
authorWilliam Woodruff <william@trailofbits.com>
Fri, 18 Oct 2019 16:17:27 +0000 (12:17 -0400)
committerEli Bendersky <eliben@users.noreply.github.com>
Fri, 18 Oct 2019 16:17:27 +0000 (09:17 -0700)
commit1d1a49883a50a06634af0b304236f09eeea56711
treec505dd2125121bd1968b4379bfd08da3c995ea36
parentcb0b3e95862d8e6ddbc174c24f469165b996eef6
dwarf/die: Handle DW_FORM_flag_present in value translation (#246)

* dwarf/die: Handle DW_FORM_flag_present in value translation

When an attribute has form DW_FORM_flag_present it is implicitly
indicated as present, with no actual value.

Ref. DWARFv4, section 7.

* test: Add DW_FORM_flag_present value test

* test: Fix iteration

* test: Remove old assert
elftools/dwarf/die.py
test/test_dwarf_attr_form_flag_present.py [new file with mode: 0644]
test/testfiles_for_unittests/lambda.elf [new file with mode: 0755]