summaryrefslogtreecommitdiff
path: root/tests/run-unit-info.sh
Commit message (Collapse)AuthorAgeFilesLines
* tests: Split self_test_files into an exe, lib and obj list.Mark Wielaard2018-06-011-2/+3
| | | | | | | | | | Introduce testrun_on_self_exe and testrun_on_self_lib. Some tests cannot handle (unrelocated) ET_REL object files. run-get-units-split.sh and run-unit-info.sh only handle executables and shared libraries. This allows running the whole testsuite on an elfutils build done with CFLAGS="-gdwarf-4 -gsplit-dwarf -O2". Signed-off-by: Mark Wielaard <mark@klomp.org>
* libdw: Add new dwarf_cu_info function.Mark Wielaard2018-05-241-0/+80
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>