Added support for DWARF v4 lineprograms
authorRaphael Taylor-Davies <raphaelt@etxcn-cam-2.cam.broadcom.com>
Mon, 17 Aug 2015 14:27:53 +0000 (15:27 +0100)
committerRaphael Taylor-Davies <raphaelt@etxcn-cam-1.cam.broadcom.com>
Mon, 24 Aug 2015 13:35:04 +0000 (14:35 +0100)
commit3b7ab324c16f7994c453af38fee9bbba6a9e7ac8
tree4da12f448737a301effa5908ae6a3f85f6fcc22e
parent902cb9b66488a163a0fc21d036781d89c5199eb1
Added support for DWARF v4 lineprograms

DWARF v4 lineprograms add additional debugging information for VLIW architectures, specifically they add an op_index field identifying the operation within the instruction to which this lineprogram refers.

This field has been added to the LineState object. On non-VLIW architectures and for non DWARF v4 lineprograms this field will always be 0.
elftools/dwarf/lineprogram.py
elftools/dwarf/structs.py
scripts/readelf.py
test/test_dwarf_lineprogram.py
test/test_dwarf_structs.py
test/testfiles_for_readelf/lineprogram.elf [new file with mode: 0644]