]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdw and libdwfl srcfiles and srclines fixes for partial_units.
authorMark Wielaard <mjw@redhat.com>
Tue, 12 Mar 2013 11:02:51 +0000 (12:02 +0100)
committerMark Wielaard <mjw@redhat.com>
Tue, 12 Mar 2013 11:25:25 +0000 (12:25 +0100)
commitf1b06b5c1d9837832e74a61e19220ad5670bbc40
treee45813697c3f90e13b2677ab526125e6fcc3110a
parenta58951b183fb3e051870b19c95d8082a3efa3ddb
libdw and libdwfl srcfiles and srclines fixes for partial_units.

dwfl_getsrclines would always fail, even when lines were found.
dwarf_decl_file, and other functions relying on srcfiles or srclines would
fail for DIEs in partial_units because stmt_lists on partial_units
were ignored.

Note that dwz contained a bug which makes things fail in __libdw_formptr
for DW_AT_stmt_list with a bogus DW_FORM even with these fixes.
https://bugzilla.redhat.com/show_bug.cgi?id=919755

Signed-off-by: Mark Wielaard <mjw@redhat.com>
libdw/ChangeLog
libdw/dwarf_getsrcfiles.c
libdw/dwarf_getsrclines.c
libdwfl/ChangeLog
libdwfl/dwfl_getsrclines.c
tests/ChangeLog
tests/Makefile.am
tests/dwfllines.c [new file with mode: 0644]
tests/run-dwfllines.sh [new file with mode: 0755]