Improved handling of location information (#225)
authorAnders Dellien <anders@andersdellien.se>
Fri, 2 Aug 2019 13:56:49 +0000 (15:56 +0200)
committerEli Bendersky <eliben@users.noreply.github.com>
Fri, 2 Aug 2019 13:56:49 +0000 (06:56 -0700)
commit19fafd6e2dc521fa64bfffe1220589bf09711ad8
tree5e788008583c054f29533d6ac6419a0d0d0e6a2f
parent678652dd36872b3b736a54a83b9faa7eb03c6bb2
Improved handling of location information (#225)

This commit moves some of the location-handling code from the examples
to a new class (LocationParser) in order to make it more reusable.

Also adds two test files containing location information.
elftools/dwarf/locationlists.py
examples/dwarf_location_info.py [new file with mode: 0644]
examples/dwarf_location_lists.py [deleted file]
examples/reference_output/dwarf_location_info.out [new file with mode: 0644]
examples/reference_output/dwarf_location_lists.out [deleted file]
test/testfiles_for_location_info/test-dwarf2.o [new file with mode: 0755]
test/testfiles_for_location_info/test-dwarf4.o [new file with mode: 0755]