X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=Fj6qsj1ucIH8lM9/ r50B6VV0ueK1fjI/ZIhYZqqReGMySZgNUwKaXICfDFxawJDT2p2aAN5xV76PTNTC t2HLnz3fJQWOC8Zi28mOSyJZx0RjtE7Xz0sFHdSqdO9ngSPkLJqC0iAAuFDWrDyz mteVisWwExnswU1S3OQjacJLJVM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=53bjbEH3BF0zTGasyAp2cq rg5yg=; b=v/twjV9JQFtnodvSA5LWwlcVzH59bahoswgomHk6qnxJe/J0efNNHo Xe7p7CYise2XNksXazVB8DRhUgVk+8cRDIbtct4t+CErLxpxtey72iuI6VMKEBVz ot7xrpOAdRPDaalUpFUHBGS6IVV6Gq4fSIBdUdgZqvML0U4bB3gmA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB,SPF_PASS autolearn=no version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: mail-wm1-f46.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=6my+I0lhxM2zuQUTlGklm1QIft8GNEgK864tPgxBWoo=; b=jjIqsZDHEFRnsivD0oj+YQ5E7DVOFBkFOk1QGGr6LKmeZHlLgB/FLuTEBqdWHgwVAY I5Qxs5nnI528mZcPug3FbZapqB1Z5zn/FGE6uQfblgPoTxcNq48CyZKfsFi5bS+834x8 MHVgz4lz8c2W+ZjDlnNRwRgFLlJWkFkqZOAsAuKDuaxETF6hJ7Ge2Bu0bZbVfr8oHOAv ZE8I0wgSDHvxq0SJOrWktMptC4Cr4gNrb0cG07JZx9Gs4ZyqFfZJyU9IN8frOdtyOJcL RtvaNN2SPNZpkQLBCjNwuP8IDTIwFeIHQg9IILWCTHHrowjINhR7g9O/qBYeSFLY7+Yx yI8Q== Subject: Re: GDB and thread To: The Cygwin Mailing List References: From: Marco Atzeri Message-ID: <3196bbfd-b460-b55e-350b-fe8a896ab3dd@gmail.com> Date: Sun, 29 Dec 2019 17:49:54 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Am 29.12.2019 um 13:58 schrieb Jon Turney: > On 28/12/2019 21:27, Marco Atzeri wrote: >> Hi, >> I am trying to debug the libuv test failures, >> but it seems I am not able to convince GDB on stopping >> just before the failure. > > I think that the problem here is that the libuv test runner forks() to > run each test in a subprocess. > > I don't think 'set follow-fork-mode child' works in Cygwin gdb > (unfortunately).  I'm not sure if it's even possible to implement... > thanks for the hint, it seems the right one. https://sourceware.org/gdb/onlinedocs/gdb/Forks.html I doubt the sleep suggestion will work, but at least now I know where is the issue. I suspect a nice insertion of printf in the code will be easier for the debugging scope. Regards Marco -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple