]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdw: Add new dwarf_cu_info function.
authorMark Wielaard <mark@klomp.org>
Sun, 20 May 2018 08:35:34 +0000 (10:35 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 24 May 2018 15:34:17 +0000 (17:34 +0200)
commitac6960d6b8602df97b5964f66ffc7cd91fd16e5b
tree24f79d3ddc8c412468d709b478a6d6976624157e
parentc2d14cc492aa7fd28740d5789fede64ce81a063b
libdw: Add new dwarf_cu_info function.

This allows getting a (split) subdie lazily, only when needed.
All arguments to dwarf_get_units are optional. When not given
then unit DIE and sub DIE are not looked up. This new function
allows them to be looked up when not immediately retrieved with
dwarf_get_units, or for a Dwarf_CU gotten through some other way.

Add a new testcase to make sure the results of calling dwarf_cu_info
and dwarf_get_units are consistent.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/ChangeLog
libdw/Makefile.am
libdw/dwarf_cu_info.c [new file with mode: 0644]
libdw/libdw.h
libdw/libdw.map
tests/ChangeLog
tests/Makefile.am
tests/run-unit-info.sh [new file with mode: 0755]
tests/unit-info.c [new file with mode: 0644]