]> git.ipfire.org Git - thirdparty/elfutils.git/commit
tests: Add run-addrcfi.sh test for libdw cfi dwarf_frame_* functions.
authorMark Wielaard <mjw@redhat.com>
Tue, 27 Aug 2013 13:40:56 +0000 (15:40 +0200)
committerMark Wielaard <mjw@redhat.com>
Mon, 2 Sep 2013 21:20:00 +0000 (23:20 +0200)
commit292b1787b6ccc429ebba177600dffdb5b33443f7
tree75cca24450b1d98767a33af06d89f49f787580bb
parent20f4c123ba93a56798c0819e33f527611fc0ce47
tests: Add run-addrcfi.sh test for libdw cfi dwarf_frame_* functions.

We require architecture backends to implement the ebl abi_cfi hook
to provide the ABI's default CFI program as used by the libdw dwarf cfi
functions. There is the addrcfi test program that prints the return
address, cfa location expression and register states as returned by
various dwarf_cfi_* and dwarf_frame functions. But that has to be run
by hand. The new run-addrcfi.sh tests hooks addrcfi up to some existing
architecture specific test files and known addresses to more easily
(and automaticly) check that the default CFI program is implemented
correctly and to test the libdw cfi frame info functionality.

Only i386 and x86_64 are tested for now since other backends don't have
the abi_cfi hook yet.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
tests/ChangeLog
tests/Makefile.am
tests/addrcfi.c
tests/run-addrcfi.sh [new file with mode: 0755]