]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
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>
Mon, 16 Nov 2020 19:41:54 +0000 (20:41 +0100)
commitd89b66edf5baac6febf636c130c9a1b748c0ce97
treeb2843cad3ab0cc3b7ad122d1b4541bb8da151033
parentc9ebbcc99b94820f4462308942ea0cab70c4b427
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.

(cherry picked from commit d7b477c541bd31045483f37345727bd8335a052a)
include/ChangeLog
include/dwarf2.def
include/dwarf2.h
libiberty/ChangeLog
libiberty/dwarfnames.c