From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DDFE93857C4A; Thu, 11 Jan 2024 15:04:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DDFE93857C4A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1704985477; bh=4u8JNClG9jeIv0Ggwm6Isnm1UJC7K8HbuxXPM6++Gms=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kDTMUVXbEjIev0muThuImXmAQVTQ3AjbbbsMtealP0aa0ffrjYjAYO5A8sZt4Sjo4 F8RY+nJnKXuyi6wwNIMay3Ts4YRKfyrwGcU+w4W3rt1QTmyaYuYbg3Q+TTcUSyR3Tt 9aYuMGc6zhREfpdD8er/g4v3t6D+6i2EUcHjq9+0= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug testsuite/31232] [gdb/testsuite, ppc64le] FAIL: gdb.dwarf2/dw2-entry-points.exp: bt foo Date: Thu, 11 Jan 2024 15:04:37 +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=3D31232 --- Comment #3 from Sourceware Commits --- The master branch has been updated by Tom de Vries : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dfa87f8e1958b= 8937047e3d5fcfd8c265745710ae commit fa87f8e1958b8937047e3d5fcfd8c265745710ae Author: Tom de Vries Date: Thu Jan 11 16:05:12 2024 +0100 [gdb/testsuite] Fix gdb.dwarf2/dw2-entry-points.exp on ppc64le On ppc64le-linux, I run into: ... (gdb) bt^M #0 0x00000000100006dc in foobar (J=3D2)^M #1 0x000000001000070c in prog ()^M (gdb) FAIL: gdb.dwarf2/dw2-entry-points.exp: bt foo ... The test-case attemps to emulate additional entry points of a function, with function bar having entry points foo and foobar: ... (gdb) p bar $1 =3D {void (int, int)} 0x1000064c (gdb) p foo $2 =3D {void (int, int)} 0x10000698 (gdb) p foobar $3 =3D {void (int)} 0x100006d0 ... However, when setting a breakpoint on the entry point foo: ... (gdb) b foo Breakpoint 1 at 0x100006dc ... it ends up in foobar instead of in foo, due to prologue skipping, and consequently the backtrace show foobar instead foo. The problem is that the test-case does not emulate an actual prologue at each entry point. Fix this by disabling the prologue skipping when setting a breakpoint, using "break *foo". Tested on ppc64le-linux and x86_64-linux. Tested-By: Guinevere Larsen Approved-By: Ulrich Weigand PR testsuite/31232 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31232 --=20 You are receiving this mail because: You are on the CC list for the bug.=