From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 50F903858C66; Mon, 27 Mar 2023 16:20:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 50F903858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679934030; bh=vZgIY6g+JJaWneFNqgfiZLuERbsGpyaZw9BxAdmOeM0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=H0CrMsENKtCVtUjF1tjgGrDuDmkko9zLYXF7cH/2ufrDj9Yg71Mk+rUWa1qcHnkmH Tu4QPsEdSSCZpoc2wKaIbT/5gOQGb9IPXnItQU8wTa+tx4nGqSB+pCd9VSpspz8i8A 4MXzx9t4GBsMRb+ORNPx1tH8oZ7xwpQJpqyx1PHU= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/27338] Stepping over a breakpoint on an instruction that makes the thread exit is not correctly handled Date: Mon, 27 Mar 2023 16:20:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: pedro at palves dot net 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=3D27338 --- Comment #4 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Pedro Alves : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D58c010877e77= ad9dd4e14272f9500d40b75e7429 commit 58c010877e77ad9dd4e14272f9500d40b75e7429 Author: Pedro Alves Date: Tue Jun 22 15:42:51 2021 +0100 displaced step: pass down target_waitstatus instead of gdb_signal This commit tweaks displaced_step_finish & friends to pass down a target_waitstatus instead of a gdb_signal. This is needed because a patch later in the step-over-{thread-exit,clone] series will want to make displaced_step_buffers::finish handle TARGET_WAITKIND_THREAD_EXITED. It also helps with the TARGET_WAITKIND_THREAD_CLONED patch later in that same series. It's also a bit more logical this way, as we don't have to pass down signals when the thread didn't actually stop for a signal. So we can also think of it as a clean up. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D27338 Change-Id: I4c5d338647b028071bc498c4e47063795a2db4c0 Approved-By: Andrew Burgess --=20 You are receiving this mail because: You are on the CC list for the bug.=