[PATCH] Ignore DWARF debug information for -gsplit-dwarf with dwarf-5.
Jan Beulich
jbeulich@suse.com
Thu Sep 29 15:00:55 GMT 2022
On 29.09.2022 14:43, Potharla, Rupesh via Binutils wrote:
> --- a/bfd/dwarf2.c
> +++ b/bfd/dwarf2.c
> @@ -4441,6 +4441,10 @@ parse_comp_unit (struct dwarf2_debug *stash,
> return NULL;
> }
>
> + /* Skip DWO_id field. */
> + if (unit_type == DW_UT_skeleton)
> + info_ptr += 8;
> +
> /* Read the abbrevs for this compilation unit into a table. */
> abbrevs = read_abbrevs (abfd, abbrev_offset, stash, file);
> if (! abbrevs)
A few lines up from here there's already a check of unit_type against
DW_UT_type. May I suggest to convert that to switch() and add your new
code there in form of a separate case block?
Jan
More information about the Binutils
mailing list