Sync libiberty and include with GCC for get_DW_UT_name.
authorMark Wielaard <mark@klomp.org>
Wed, 23 Sep 2020 14:41:06 +0000 (16:41 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 24 Sep 2020 20:55:24 +0000 (22:55 +0200)
commitd7b477c541bd31045483f37345727bd8335a052a
tree31f245e1c2ef5994cd8b0f5aa764a5172586cccf
parentec47b32a85294af959457ad19bd98dd13f6389fd
Sync libiberty and include with GCC for get_DW_UT_name.

This adds a get_DW_UT_name function to dwarfnames using dwarf2.def
for use in binutils readelf to show the unit types in a DWARF5 header.

include/ChangeLog:

Sync with GCC
* dwarf2.def: Add DWARF5 Unit type header encoding macros
DW_UT_FIRST, DW_UT and DW_UT_END.
* dwarf2.h (enum dwarf_unit_type): Removed and define using
DW_UT_FIRST, DW_UT and DW_UT_END macros.
(get_DW_UT_name): New function declaration.

libiberty/ChangeLog:

Sync with GCC
* dwarfnames.c (get_DW_UT_name): Define using DW_UT_FIRST, DW_UT
and DW_UT_END.
include/ChangeLog
include/dwarf2.def
include/dwarf2.h
libiberty/ChangeLog
libiberty/dwarfnames.c