diff options
author | Mark Wielaard <mark@klomp.org> | 2020-09-23 16:10:41 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2020-09-24 22:37:10 +0200 |
commit | 942ab9e9d4ff1da711daad3e8c71c57fd4c14035 (patch) | |
tree | 074b240025069ca94d348c485cd06febacfda598 /include/dwarf2.def | |
parent | d13c0ae859fbb5bb937692548e5860e4cb39e26b (diff) | |
download | gcc-942ab9e9d4ff1da711daad3e8c71c57fd4c14035.zip gcc-942ab9e9d4ff1da711daad3e8c71c57fd4c14035.tar.gz gcc-942ab9e9d4ff1da711daad3e8c71c57fd4c14035.tar.bz2 |
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.
Diffstat (limited to 'include/dwarf2.def')
-rw-r--r-- | include/dwarf2.def | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/dwarf2.def b/include/dwarf2.def index d8a8cce..13825a3 100644 --- a/include/dwarf2.def +++ b/include/dwarf2.def @@ -805,3 +805,14 @@ DW_IDX (DW_IDX_hi_user, 0x3fff) DW_IDX (DW_IDX_GNU_internal, 0x2000) DW_IDX (DW_IDX_GNU_external, 0x2001) DW_END_IDX + +/* DWARF5 Unit type header encodings */ +DW_FIRST_UT (DW_UT_compile, 0x01) +DW_UT (DW_UT_type, 0x02) +DW_UT (DW_UT_partial, 0x03) +DW_UT (DW_UT_skeleton, 0x04) +DW_UT (DW_UT_split_compile, 0x05) +DW_UT (DW_UT_split_type, 0x06) +DW_UT (DW_UT_lo_user, 0x80) +DW_UT (DW_UT_hi_user, 0xff) +DW_END_UT |