libdw: Handle split dwarf debuglines.
authorMark Wielaard <mark@klomp.org>
Thu, 17 May 2018 22:26:56 +0000 (00:26 +0200)
committerMark Wielaard <mark@klomp.org>
Tue, 22 May 2018 13:49:22 +0000 (15:49 +0200)
commita4c74cc67de22cb3208fc768989c509d6837cd77
tree54e0928f75a58ff4dd6cc11103daa67489e27780
parent46d5523c94b5e9c830aeba9de863e1b65b08b1df
libdw: Handle split dwarf debuglines.

Split DWARF .dwo files do contain a .debug_line section, but only with
the file table, there is no actual line program. Also split DWARF CU DIEs
don't have a DW_AT_stmt_list attribute. To get at the file (and dir) table
for a split unit DIE take just the files from the .debug_line section
(at offset zero). To get the full line table use the skeleton DIE (which
does have a DW_AT_stmt_list).

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/ChangeLog
libdw/dwarf_getsrcfiles.c
libdw/dwarf_getsrclines.c
libdw/libdw_findcu.c
tests/ChangeLog
tests/run-get-files.sh