delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/05/05/06:06:17

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=Yk96WPaD+gYTOLll
SZ0JFG7o4nVNJzWFPTYK12YvCXeuUchmqhQSbjfTcMjb5SWH+OXd9fgCnZ7nEk0b
YPLa8jVaQ4fgfqZmqKc6FF+zbVHrK/OEBCos6Vr6AtVtfZqZmXXJo+GsamC+aVzg
UpcEQN70e6XGLKhlaYRkSG4X6eE=
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=lOHMDJGcdZkouYzdZc0a93
UvbM0=; b=tCLRlCpL0lqj79TibLyaxk21rr3qaraAuCcKKwDrqhvrrML3qj411v
JXBbHtjRXt1oXOlEDTy2mv3APJ3upgOHsgYdtLBvxRUPSMzkdwA0+c4zCdm3NOLZ
bXhWYc6t5jcTV5uky0kc17KD3eCJaXda/RVzVcc+XZ2ZIV1VkDcVo=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_40,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=geisert, Geisert, UD:cygwin1.dll, cygwin1.dll
X-HELO: out4-smtp.messagingengine.com
X-ME-Sender: <xms:iU4MWXenGHH_4v6FxNPkUItMYFvW6hILDBqiWkYbHyNrcUfdViYbmw>
Subject: Re: How to break cygwin inside dcrt0.cc ?
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
References: <c90cbfa5-3411-f7bd-587c-7ef70e1e2cbf AT gmail DOT com> <590BDD0B DOT 7040709 AT maxrnd DOT com> <14756c6c-cc89-fa5d-bfbb-88662445dc46 AT gmail DOT com>
From: Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>
Message-ID: <48d5fc33-9034-19bd-fc94-10977535ec3c@dronecode.org.uk>
Date: Fri, 5 May 2017 11:05:50 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <14756c6c-cc89-fa5d-bfbb-88662445dc46@gmail.com>

On 05/05/2017 08:44, Marco Atzeri wrote:
> On 05/05/2017 04:01, Mark Geisert wrote:
>> Marco Atzeri wrote:
>>> I am likely missing something obvious, but I do not succeed to put
>>> a breakpoint inside child_info_fork::alloc_stack
>>>
>>> break child_info_fork::alloc_stack
>>> Function "child_info_fork::alloc_stack" not defined.
>>>
>>>   break /usr/src/debug/cygwin-2.8.0-1/winsup/cygwin/dcrt0.cc:408
>>> No source file named
>>> /usr/src/debug/cygwin-2.8.0-1/winsup/cygwin/dcrt0.cc

This works for me:

> $ gdb test.exe
[...]
> Reading symbols from test.exe...done.
> (gdb) b main
> Breakpoint 1 at 0x1004010dd: file test.c, line 7.
> (gdb) r
> Starting program: /wip/test.exe
>
> Thread 1 "test" hit Breakpoint 1, main () at while-test.c:7
> 7          sleep(1);
> (gdb) b child_info_fork::alloc_stack()
> Breakpoint 2 at 0x1800463f0: file /usr/src/debug/cygwin-2.8.0-1/winsup/cygwin/dcrt0.cc, line 407.
> (gdb)

You are in a state where the debug info for cygwin1.dll has been loaded? 
  Trying to set a breakpoint before the program has run won't work, as 
cygwin1.dll hasn't loaded yet...

> By the way it seems that git source can not be built
> in cygwin as it lacks configure

What? The configure script is in the git repo and source tarball.

>  $ autoreconf
> configure.ac:33: error: Please use exactly Autoconf 2.64 instead of 2.69.
> config/override.m4:12: _GCC_AUTOCONF_VERSION_CHECK is expanded from...
> configure.ac:33: the top level
> autom4te-2.69: /usr/bin/m4 failed with exit status: 1
> aclocal-1.14: error: echo failed with exit status: 1
> autoreconf-2.69: aclocal failed with exit status: 1

This version of autoconf is packaged as gcc-tools-epoch2-autoconf.  The 
announce mail for that explains how to use it.

Moving off such ancient autotools needs to be done, but SHTDI...


--
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