From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1386) id 47D943858D1E; Tue, 4 Oct 2022 07:41:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 47D943858D1E Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jan Beulich To: bfd-cvs@sourceware.org Subject: [binutils-gdb] ignore DWARF debug information for -gsplit-dwarf with dwarf-5 X-Act-Checkin: binutils-gdb X-Git-Author: Potharla, Rupesh X-Git-Refname: refs/heads/master X-Git-Oldrev: cf0136a276e0b9c5ff08e04cf92e738de5de9529 X-Git-Newrev: 09fbd1cf93bac1fe02860184f0a0bceedb40ff33 Message-Id: <20221004074106.47D943858D1E@sourceware.org> Date: Tue, 4 Oct 2022 07:41:06 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2022 07:41:06 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D09fbd1cf93ba= c1fe02860184f0a0bceedb40ff33 commit 09fbd1cf93bac1fe02860184f0a0bceedb40ff33 Author: Potharla, Rupesh Date: Tue Oct 4 09:39:53 2022 +0200 ignore DWARF debug information for -gsplit-dwarf with dwarf-5 =20 Skip dwo_id for split dwarf. =20 * dwarf2.c (parse_comp_unit): Skip DWO_id for DW_UT_skeleton. Diff: --- bfd/dwarf2.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index 4a6a1e40185..364cc9a6480 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -4411,13 +4411,23 @@ parse_comp_unit (struct dwarf2_debug *stash, if (version < 5) addr_size =3D read_1_byte (abfd, &info_ptr, end_ptr); =20 - if (unit_type =3D=3D DW_UT_type) + switch (unit_type) { + case DW_UT_type: /* Skip type signature. */ info_ptr +=3D 8; =20 /* Skip type offset. */ info_ptr +=3D offset_size; + break; + + case DW_UT_skeleton: + /* Skip DWO_id field. */ + info_ptr +=3D 8; + break; + + default: + break; } =20 if (addr_size > sizeof (bfd_vma))