Add support for DW_OP_GNU_variable_value to readelf
authorKevin Buettner <kevinb@redhat.com>
Mon, 30 Jul 2018 22:35:45 +0000 (15:35 -0700)
committerKevin Buettner <kevinb@redhat.com>
Wed, 8 Aug 2018 15:10:36 +0000 (08:10 -0700)
commitf384a1f025084a4a6370d7ada6dc7198ad3454e4
tree68ea1461a61a1f519b168b2d50ee1d1989f49c16
parentf7309df20c4e787041cedc4a6aced89c15259e54
Add support for DW_OP_GNU_variable_value to readelf

As indicated by the subject, this patch adds support for the DWARF
expression opcode DW_OP_GNU_variable_value to readelf.

It's pretty much a copy/paste of DW_OP_call_ref with the obvious name
changes for the printf statements.  The FIXME comment comes from that
copy/paste.

binutils/ChangeLog:

* dwarf.c (decode_location_expresion): Add case for
DW_OP_GNU_variable_value.
binutils/ChangeLog
binutils/dwarf.c