[Bug default/27368] [dwz, dwarf5] Handle .debug_macro version 5

mark at klomp dot org sourceware-bugzilla@sourceware.org
Mon Feb 8 14:39:45 GMT 2021


https://sourceware.org/bugzilla/show_bug.cgi?id=27368

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org

--- Comment #7 from Mark Wielaard <mark at klomp dot org> ---
The version check should be fine.
My preference would simply be version != 4 && version !=5.

This should fine as is with GCC DWARF5 since:

    DW_MACRO_GNU_define ==              DW_MACRO_define
    DW_MACRO_GNU_undef ==               DW_MACRO_undef
    DW_MACRO_GNU_start_file ==          DW_MACRO_start_file
    DW_MACRO_GNU_end_file ==            DW_MACRO_end_file
    DW_MACRO_GNU_define_indirect ==     DW_MACRO_define_strp
    DW_MACRO_GNU_undef_indirect ==      DW_MACRO_undef_strp
    DW_MACRO_GNU_transparent_include == DW_MACRO_import

That leaves:

    DW_MACRO_define_strx
    DW_MACRO_undef_strx

But those are never generated by GCC (see also DW_FORM_strx[1234] support).

dwz itself could generate (probably behind a --dwarf5 flag):

    DW_MACRO_define_sup
    DW_MACRO_undef_sup
    DW_MACRO_import_sup

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Dwz mailing list