From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 502263858429; Fri, 12 Apr 2024 17:45:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 502263858429 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1712943921; bh=abvUls2FxZEV6KQJehYcl8ops0x0ABjvxPCEMdtgFbs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Kq4pGiZLUXLy7mUXHk/d1wJgxURAifb1i5E+Rpb0yqQIc12Ws0JrZbVW7Wwi5rJ0v OQyhF+NrLBfQMJOY207bJor2id+r0KQUBG2JL1lyjIeU4Vym9hLPmgykqfYEqhqpF4 GUhOt5rYtY7XhHirIV7DRylMsP0SLJkBki0sEi1g= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug threads/8153] attach impossible on Cygwin if main thread exits Date: Fri, 12 Apr 2024 17:45:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: threads X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: CLOSED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: cgf 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=3D8153 --- Comment #6 from Sourceware Commits --- The master branch has been updated by Pedro Alves : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dec4890317092= 6f3827144525b50ddd3c6ae3fbf0 commit ec48903170926f3827144525b50ddd3c6ae3fbf0 Author: Pedro Alves Date: Mon Mar 25 15:17:02 2024 +0000 New testcase gdb.threads/leader-exit-attach.exp (PR threads/8153) Add a new testcase for exercising attaching to a process after its main thread has exited. This is not possible on Linux, the kernel does not allow attaching to a zombie task, so the test is kfailed there. It is possible however on Windows at least, and was the scenario addressed by the Windows backend fix in https://sourceware.org/legacy-ml/gdb-patches/2003-12/msg00479.html, nowadays PR threads/8153, back in 2003. Passes cleanly on Cygwin. KFAILed on GNU/Linux native and gdbserver. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D8153 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31554 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31555 Change-Id: Ib554f92f68c965bb4603cdf2aadb55ca45ded53b --=20 You are receiving this mail because: You are on the CC list for the bug.=