From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DB78F3858C41; Wed, 17 Apr 2024 10:54:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB78F3858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1713351288; bh=WzQIjdtlJvWuFHrmS7jtkcX+4aSRnLl0+ZaslHQomrs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Twn/9n9l5CssHcBJ1TwNxlI4Jpo8Dz63NpCrYHyJw6MwQBM+Uchz5oG/MzNvYBP8c PpLU054bT1TTeldAuOATVc7E72S00O6OumJylY8WZ26SxUl8FTUpEQZTryOgQ+/pX3 xjMY1CQh/RbeqsDHHYY/yPrYL/EjRjHC3B8VhQdw= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug testsuite/31592] [gdb/testsuite] gdb.dwarf2/dw2-epilogue-begin.exp drops epilogue_begin entry Date: Wed, 17 Apr 2024 10:54:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: testsuite X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31592 --- Comment #4 from Sourceware Commits --- The master branch has been updated by Tom de Vries : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dd52ba54add0d= 2500403db63c09878e3f3cde8449 commit d52ba54add0d2500403db63c09878e3f3cde8449 Author: Tom de Vries Date: Wed Apr 17 12:55:00 2024 +0200 [gdb/testsuite] Require address update for DW_LNE_end_sequence With test-case gdb.dwarf2/dw2-epilogue-begin.exp, we have an end_sequen= ce entry with the same address as the line entry before it: ... File name Line number Starting address View=20= =20=20 Stmt dw2-epilogue-begin.c 44 0x4101e8=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 x dw2-epilogue-begin.c 47 0x4101ec=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 x dw2-epilogue-begin.c - 0x4101ec ... and consequently the line entry is removed by gdb: ... INDEX LINE REL-ADDRESS UNREL-ADDRESS IS-STMT PRO EPI 0 20 0x00000000004101a8 0x00000000004101a8 Y Y Y 1 27 0x00000000004101b0 0x00000000004101b0 Y 2 32 0x00000000004101b8 0x00000000004101b8 Y Y 3 34 0x00000000004101c0 0x00000000004101c0 Y Y 4 35 0x00000000004101c8 0x00000000004101c8 Y 5 40 0x00000000004101d4 0x00000000004101d4 Y Y 6 44 0x00000000004101e8 0x00000000004101e8 Y 7 END 0x00000000004101ec 0x00000000004101ec Y ... This is a common mistake in dwarf assembly test-cases. Fix this by: - requiring an address update for each DW_LNE_end_sequence, and - fixing the test-cases where that triggers an error. I also encountered the error in test-case gdb.dwarf2/dw2-bad-elf.exp, a= nd in this case I worked around it using "DW_LNS_advance_pc 0". Tested on aarch64-linux. PR testsuite/31592 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31592 --=20 You are receiving this mail because: You are on the CC list for the bug.=