is dwarf_decode_address.py suite for dwarf version 5 ?
DogeWatch opened this issue · comments
DogeWatch commented
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.
Seva Alekseyev (he/him) commented
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.
Eli Bendersky commented
Is this fixed by #463 and should be closed?
Eli Bendersky commented
Closing. Reopen if needed, explaining why #463 is not a fix