]> git.ipfire.org Git - thirdparty/gcc.git/commit
libiberty: Add get_DW_UT_name and update include/dwarf2.{def,h}
authorMark Wielaard <mark@klomp.org>
Wed, 23 Sep 2020 14:10:41 +0000 (16:10 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 24 Sep 2020 20:37:10 +0000 (22:37 +0200)
commit942ab9e9d4ff1da711daad3e8c71c57fd4c14035
tree074b240025069ca94d348c485cd06febacfda598
parentd13c0ae859fbb5bb937692548e5860e4cb39e26b
libiberty: Add get_DW_UT_name and update include/dwarf2.{def,h}

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.

Also remove DW_CIE_VERSION which was already removed in binutils/gdb
and is not used in gcc.

include/ChangeLog:

* 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.
(DW_CIE_VERSION): Removed.
(get_DW_UT_name): New function declaration.

libiberty/ChangeLog:

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