Example reading .debug_pubtypes.
The .debug_pubtypes section was in DWARF4, it could appear as an extension in other DWARF versions.. In libdwarf 0.5.0 and earlier the function dwarf_get_pubtypes() was used instead.