delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/12/29/02:26:06

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=y33KZuaw8VhJ83TL
huILLlCHmV524wwEI8t3NSNLBV+yv/G/GShEqBHhcJFKCZTyQFttNu6+65yb+wZr
4WykOaAhxnPDbaZDG8BTt8HRaCPbwhd7lRWF+8Na7XnRNCNSf06i3sai9xDpGg3t
XkxL32sS1PA/V7BzPOtU2K/QTl4=
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=d96ZmeicZyEbhM1TuQK/Js
Gk81g=; b=EgsOC0gvSbtHs8Chswit72aIft0wZOK2uXjhw75tVQFuGurPx9VdOM
ZBMU3YWxPC5xUnJ72Dqopz4zssIa1J9u2+EqJkH0ohCHtTRF3kEFP6hyDdXatfDD
QY7wOctiloGiMaiHi3F+5F5UaajqZhHhvW2eDX2Xkl5/0UPPIZipk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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.0 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-wr1-f49.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=EyrxAJJ1S2gKcMBJxyuD5qVC3skhnz53NlUj47YSqzs=; b=W3nTzDLh+BCof+hOcseadCfjEVP4oVOIaiL7u5jX2FoyQfEmZRcsDorJ0VysF/cftq VwM172Rven8G7ty09ep6Oo5li2Kw1Ock1zWn4EHKpBbsqZxKy1mj59L7Pet+X/jee+s8 +QEX47QmhTDeHyQWV0Dhvus5UJP2rFgBYlThe+eUmurITR8OnTOWrNGa5V8O8vMEZwz8 zpsKQ9F5/TnE/m7cYTjGDIKeqr5vVVhiVQEdi8/tmu86TD69Vxlc6IQ3Qj1HBUz8XzkU fvmmTdODBrqhxZF8M4/U60YBCDh4c3IdSt1JLPZ9xqm9c6nM2JvMERRSyh/hVzecuFGU Uj2g==
Subject: Re: GDB and thread
To: cygwin AT cygwin DOT com
References: <b0d8c3b7-6ebd-3fce-f1b6-4542fb5a37c7 AT gmail DOT com> <cc4cf832-e661-dfc1-853a-c1b9ab71bca9 AT cornell DOT edu> <d24dfbbd-5883-4675-1889-9428142aca04 AT gmail DOT com> <5bb42265-9adf-9499-0b94-ab1f2b139e58 AT SystematicSw DOT ab DOT ca>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <956350f7-5bbc-4e80-f089-03851c6e0f44@gmail.com>
Date: Sun, 29 Dec 2019 08:24:27 +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: <5bb42265-9adf-9499-0b94-ab1f2b139e58@SystematicSw.ab.ca>
X-IsSubscribed: yes

Am 29.12.2019 um 05:38 schrieb Brian Inglis:
> On 2019-12-28 15:28, Marco Atzeri wrote:
>> Am 28.12.2019 um 23:03 schrieb Ken Brown:
>>> On 12/28/2019 4:27 PM, Marco Atzeri wrote:
>>>> 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.
>>>>
>>>> Is "thread apply all" working on Cygwin ?
>>>> The fact that produces no output in comparison to
>>>> a normal break command is a bit strange
>>>>
>>>> (gdb) break test-dlerror.c:34
>>>> Breakpoint 1 at 0x10040b0b0: file /pub/devel/libuv/libuv-1.34.0/test/test-dlerro
>>>> r.c, line 34.
>>>> (gdb) thread apply all break test-dlerror.c:34
>>>

>>> Might this be related to optimization?  That could change the order in which
>>> lines of code are executed.  Have you tried building without optimization?
>>
>> Already thought, but it is built with -ggdb -O0
> Recommended to use at least -Og nowadays for better debugging:
> 
> 	$ info gcc inv debug
> 
> "With no '-O' option at all, some compiler passes that collect information
> useful for debugging do not run at all, so that '-Og' may result in a better
> debugging experience."
> 

Thanks for the info
unfortunately there is no difference.
It is like the debugger is unable to see the breakpoints when running
in this threaded code.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019