From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B54403892467; Wed, 27 Jan 2021 15:17:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B54403892467 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug testsuite/26967] FAIL: gdb.base/longjmp.exp: next over longjmp(1) Date: Wed, 27 Jan 2021 15:17:20 +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: vries 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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jan 2021 15:17:20 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26967 --- Comment #2 from Tom de Vries --- While working on PR27205 I figured out what happens. Without longjmp probes in libc, we try to fall back to using longjmp_names breakpoints, but when these trigger we don't manage to recuperate the pc fr= om jmp_buf because tdep->jb_pc_offset is not set (in other words, -1). Perhaps this once was set, but switched off due to problems. There are kno= wn issues with this for linux related to pointer guarding of the pc in jmp_buf. Anyway, we could detect this in the "set debug infrun 1" output: ... [infrun] process_event_stop_test: BPSTAT_WHAT_SET_LONGJMP_RESUME (!gdbarch_get_longjmp_target) ... and then allow the behaviour reported in this PR. However, AFAIU that still wouldn't work for -m32, because there tdep->jb_pc_offset is defined and then we run into pointer guarding (see PR27205 for what that looks like). --=20 You are receiving this mail because: You are on the CC list for the bug.=