PR25042 - Support string form DW_FORM_strx{1,4} from DWARF 5
authorDodji Seketeli <dodji@redhat.com>
Mon, 30 Sep 2019 15:36:58 +0000 (17:36 +0200)
committerDodji Seketeli <dodji@redhat.com>
Tue, 1 Oct 2019 12:14:41 +0000 (14:14 +0200)
commit568dee18a1358e79047e94d10f7eee6f4632464c
treea867b1ea4cf119e03b4866588470593fc9dcda24
parentd2c88645e88a85812331fbed8b2a1471c59b5b5b
PR25042 - Support string form DW_FORM_strx{1,4} from DWARF 5

* configure.ac: Detect the presence of the DW_FORM_strx{1,4}
enumerators.
* src/abg-dwarf-reader.cc (form_is_DW_FORM_strx): Define new
function.
(compare_dies_string_attribute_value): Use the new
form_is_DW_FORM_strx here.
* tests/data/Makefile.am: Add the new test input files below to
source distribution.
* tests/data/test-read-dwarf/PR25042-libgdbm-clang-dwarf5.so.6.0.0:
New binary test input file.
* tests/data/test-read-dwarf/PR25042-libgdbm-clang-dwarf5.so.6.0.0.abi:
Reference output of the new binary test input file.
* tests/test-read-dwarf.cc (in_out_specs): Add the input test
files above to the test harness, for platforms that support the
DW_FORM_strx form.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
configure.ac
src/abg-dwarf-reader.cc
tests/data/Makefile.am
tests/data/test-read-dwarf/PR25042-libgdbm-clang-dwarf5.so.6.0.0 [new file with mode: 0644]
tests/data/test-read-dwarf/PR25042-libgdbm-clang-dwarf5.so.6.0.0.abi [new file with mode: 0644]
tests/test-read-dwarf.cc