HomeFreeBSD

libdwarf: Add some constants from DWARF 5

Description

libdwarf: Add some constants from DWARF 5

This is not exhaustive - DWARF 5 has some new enumeration types not
implemented here - but I think I caught all the ones that are extended
in DWARF 5, plus the new compilation unit type (DW_UT_*), needed when
parsing .debug_info headers.

These were useful when extending libdwarf/ctfconvert/readelf to handle
DWARF generated by gcc 12, which is version 5 by default.

Reviewed by: emaste
MFC after: 3 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D38273

(cherry picked from commit 7bb441c866781ec14b3e79a4f3e95fd319ab7ff9)

Details

Provenance
markjAuthored on Feb 7 2023, 7:33 PM
Reviewer
emaste
Differential Revision
D38273: libdwarf: Add some constants from DWARF 5
Parents
rG3c12bcba78ea: bhyve: add emulation for qemu's fwcfg data port
Branches
Unknown
Tags
Unknown