Simplify handling of null DIEs (#209)
authorAnders Dellien <anders@andersdellien.se>
Thu, 20 Dec 2018 13:21:35 +0000 (14:21 +0100)
committerEli Bendersky <eliben@users.noreply.github.com>
Thu, 20 Dec 2018 13:21:35 +0000 (05:21 -0800)
commit5f9416fa6b6da2b4a7b5ed7305d012ab71b1fb30
treed2eb35c64f03be76efaa1f818cc6e5133560efd7
parent4c547a2ce9532383ce615f3933af65097e7b36f5
Simplify handling of null DIEs (#209)

The code that is intended to coalesce null DIEs into the DIE that
precedes them does not do that and is actually not needed as the
'unflattening' procedure takes care of any unexpected null DIEs.

Also added a unit test for verifying the DIE size calculation.
elftools/dwarf/die.py
test/test_die_size.py [new file with mode: 0644]
test/testfiles_for_unittests/trailing_null_dies.elf [new file with mode: 0644]