tests: Add new varlocs test for dwarf_getlocation* functions.
authorMark Wielaard <mjw@redhat.com>
Fri, 30 Aug 2013 22:52:12 +0000 (00:52 +0200)
committerMark Wielaard <mjw@redhat.com>
Fri, 6 Sep 2013 10:17:14 +0000 (12:17 +0200)
commit6e6e54e12a30b70929d9465fae3dc601684a8794
treedce12a231222431d3de5b6d87488a6fe6d9b56ff
parentb2535b6a6be7717cdd41834d76e5cb48cb446b83
tests: Add new varlocs test for dwarf_getlocation* functions.

This tests the new dwarf_getlocations, dwarf_getlocation_attr and
dwarf_getlocation_die functions. But it is also an example of how
to handle location expressions and which libdw functions can be
used to access all information required to interpret each DW_OP.

It might make sense to extend this test/example into a program
that verifies various properties of DWARF expressions.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
14 files changed:
tests/ChangeLog
tests/Makefile.am
tests/run-varlocs.sh [new file with mode: 0755]
tests/testfile_const_type.bz2 [new file with mode: 0755]
tests/testfile_const_type.c [new file with mode: 0644]
tests/testfile_entry_value.bz2 [new file with mode: 0755]
tests/testfile_entry_value.c [new file with mode: 0644]
tests/testfile_implicit_pointer.bz2 [new file with mode: 0755]
tests/testfile_implicit_pointer.c [new file with mode: 0644]
tests/testfile_implicit_value.bz2 [new file with mode: 0755]
tests/testfile_implicit_value.c [new file with mode: 0644]
tests/testfile_parameter_ref.bz2 [new file with mode: 0755]
tests/testfile_parameter_ref.c [new file with mode: 0644]
tests/varlocs.c [new file with mode: 0644]