fix issue in aranges cu_offset_at_addr (#310)
authorPatrick Gordon <pgpatrickgordon@gmail.com>
Sat, 23 May 2020 14:49:28 +0000 (15:49 +0100)
committerGitHub <noreply@github.com>
Sat, 23 May 2020 14:49:28 +0000 (07:49 -0700)
commit9f12da56703fa7e805fc31a7af80b314b30a9c2e
treeb030e03d9360e2671cce6f57c4a7c9e3548a01cb
parent478f61c3a590323144c9c1e0ef7b7254d9f82b6f
fix issue in aranges cu_offset_at_addr (#310)

* fix issue in aranges cu_offset_at_addr

if there are aranges for some parts of the binary but not others, incorrect aranges may be returned

* add test suite for absent/partial/complete aranges
elftools/dwarf/aranges.py
test/test_dwarf_aranges.py [new file with mode: 0644]
test/testfiles_for_unittests/aranges_absent.elf [new file with mode: 0755]
test/testfiles_for_unittests/aranges_complete.elf [new file with mode: 0755]
test/testfiles_for_unittests/aranges_partial.elf [new file with mode: 0755]
test/testfiles_for_unittests/aranges_partial_a.c [new file with mode: 0644]
test/testfiles_for_unittests/aranges_partial_b.c [new file with mode: 0644]