[libbacktrace] Handle alt FORMS without .gnu_debugaltlink
authorTom de Vries <tdevries@suse.de>
Thu, 17 Jan 2019 00:07:53 +0000 (00:07 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 17 Jan 2019 00:07:53 +0000 (00:07 +0000)
commit944f59ffe2ea4cfc7391741ddab281d7d9cf5b94
treeb6cdf66bd75583e54f061be2cd2f157e7989ddf5
parent9ad458d5397ffccd419cdd4a00dd816a500ab018
[libbacktrace] Handle alt FORMS without .gnu_debugaltlink

Handle DW_FORM_GNU_strp_alt and DW_FORM_GNU_ref_alt references robustly in
presence of missing .gnu_debugaltlink file.

2019-01-17  Tom de Vries  <tdevries@suse.de>

* dwarf.c (enum attr_val_encoding): Add ATTR_VAL_NONE.
(read_attribute): Add altlink parameter.  Handle missing altlink for
DW_FORM_GNU_strp_alt and DW_FORM_GNU_ref_alt.
(find_address_ranges, build_address_map, build_dwarf_data): Add and
handle altlink parameter.
(read_referenced_name, read_function_entry): Add argument to
read_attribute call.

From-SVN: r267995
libbacktrace/ChangeLog
libbacktrace/dwarf.c