]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdw: Handle DW_OP_GNU_variable_value.
authorMark Wielaard <mark@klomp.org>
Thu, 2 Nov 2017 15:24:41 +0000 (16:24 +0100)
committerMark Wielaard <mark@klomp.org>
Fri, 10 Nov 2017 15:36:01 +0000 (16:36 +0100)
commitafda91cb2e68f3817e551ad58ad4bbe9fc0da403
tree316188b6d67b3bc485c4ec20d3a80dab7e2be1b5
parent7286e5c5de53840126b4046a46442872a3b00692
libdw: Handle DW_OP_GNU_variable_value.

Handle DW_OP_GNU_variable_value in dwarf_getlocation[_attr,_die].
DW_OP_GNU_variable_value takes one argument a DIE reference that
describes a value given by a location of const_value attribute.

To test handling of the new operand the varlocs test is adapted
to print out all DIEs and attributes with expressions or location
lists (the original varlocs test only prints out variables and
arguments of function DIEs).

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/ChangeLog
libdw/dwarf_getlocation.c
libdw/dwarf_getlocation_attr.c
libdw/dwarf_getlocation_die.c
tests/ChangeLog
tests/Makefile.am
tests/run-exprlocs.sh [new file with mode: 0755]
tests/testfile-stridex.bz2 [new file with mode: 0755]
tests/varlocs.c