[Bug default/27372] [dwz] DWARF CU type DW_UT_type unhandled -- Could not find DWARF abbreviation <n>

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


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

Mark Wielaard <mark at klomp dot org> changed:

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

--- Comment #2 from Mark Wielaard <mark at klomp dot org> ---
(In reply to Tom de Vries from comment #1)
> Looks like a missing goto fail:
> ...
> diff --git a/dwz.c b/dwz.c
> index 10860bf..c0d0003 100644
> --- a/dwz.c
> +++ b/dwz.c
> @@ -6584,9 +6584,11 @@ read_debug_info (DSO *dso, int kind, unsigned int
> *die_count)
>         {
>           value = read_8 (ptr);
>           if (value != DW_UT_compile && value != DW_UT_partial)
> -           error (0, 0, "%s: DWARF CU type %s unhandled", dso->filename,
> -                  get_DW_UT_str (value));
> -
> +           {
> +             error (0, 0, "%s: DWARF CU type %s unhandled", dso->filename,
> +                    get_DW_UT_str (value));
> +             goto fail;
> +           }
>         }
>        else
>         {
> ...
> after which we have:
> ...
> $ ./dwz a.out
> ./dwz: a.out: DWARF CU type DW_UT_type unhandled
> ...

Yes, please apply. Thanks.

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


More information about the Dwz mailing list