eliben / pyelftools

Parsing ELF and DWARF in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is dwarf_decode_address.py suite for dwarf version 5 ?

DogeWatch opened this issue · comments

https://github.com/eliben/pyelftools/blob/master/examples/dwarf_decode_address.py#L91
I found filename = lineprog['file_entry'][prevstate.file - 1].name should change to filename = lineprog['file_entry'][prevstate.file].name to parse the dwarf version 5 file.

That is true. The rule that index zero means default file was deprecated in DWARF 5. That said, the line should not go like that either; it should be conditional on the DWARF version; we don't want to kill backward compatibility, either.

Is this fixed by #463 and should be closed?

Closing. Reopen if needed, explaining why #463 is not a fix