]> git.ipfire.org Git - thirdparty/elfutils.git/commit
Add __libdw_getdieranges
authorAaron Merey <amerey@redhat.com>
Mon, 26 Feb 2024 14:58:39 +0000 (09:58 -0500)
committerAaron Merey <amerey@redhat.com>
Thu, 29 Feb 2024 22:46:45 +0000 (17:46 -0500)
commitd7768acc697735cc7498ddc891a1065439ba1d6f
tree7175ea22ba4f3ddbb9371308fc560b692683baf6
parent2ceed6d40ff1606622b51ce0c8ece3d13454ef23
Add __libdw_getdieranges

__libdw_getdieranges builds an aranges list by iterating over each
CU and recording each address range.

This function is an alternative to dwarf_getaranges.  dwarf_getaranges
attempts to read address ranges from .debug_aranges, which might be
absent or incomplete.

This patch replaces dwarf_getaranges with __libdw_getdieranges in
dwarf_addrdie and dwfl_module_addrdie.  The existing tests in
run-getsrc-die.sh are also rerun with .debug_aranges removed from
the testfiles.

https://sourceware.org/bugzilla/show_bug.cgi?id=22288
https://sourceware.org/bugzilla/show_bug.cgi?id=30948

Signed-off-by: Aaron Merey <amerey@redhat.com>
NEWS
libdw/dwarf_addrdie.c
libdw/dwarf_getaranges.c
libdw/libdwP.h
libdwfl/cu.c
tests/run-getsrc-die.sh