mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 13:56:22 +08:00
ignore DWARF debug information for -gsplit-dwarf with dwarf-5
Skip dwo_id for split dwarf. * dwarf2.c (parse_comp_unit): Skip DWO_id for DW_UT_skeleton.
This commit is contained in:

committed by
Jan Beulich

parent
cf0136a276
commit
09fbd1cf93
12
bfd/dwarf2.c
12
bfd/dwarf2.c
@ -4411,13 +4411,23 @@ parse_comp_unit (struct dwarf2_debug *stash,
|
|||||||
if (version < 5)
|
if (version < 5)
|
||||||
addr_size = read_1_byte (abfd, &info_ptr, end_ptr);
|
addr_size = read_1_byte (abfd, &info_ptr, end_ptr);
|
||||||
|
|
||||||
if (unit_type == DW_UT_type)
|
switch (unit_type)
|
||||||
{
|
{
|
||||||
|
case DW_UT_type:
|
||||||
/* Skip type signature. */
|
/* Skip type signature. */
|
||||||
info_ptr += 8;
|
info_ptr += 8;
|
||||||
|
|
||||||
/* Skip type offset. */
|
/* Skip type offset. */
|
||||||
info_ptr += offset_size;
|
info_ptr += offset_size;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case DW_UT_skeleton:
|
||||||
|
/* Skip DWO_id field. */
|
||||||
|
info_ptr += 8;
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (addr_size > sizeof (bfd_vma))
|
if (addr_size > sizeof (bfd_vma))
|
||||||
|
Reference in New Issue
Block a user