From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 84312 invoked by alias); 5 May 2017 10:06:02 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 84302 invoked by uid 89); 5 May 2017 10:06:01 -0000 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 Received: from out4-smtp.messagingengine.com (HELO out4-smtp.messagingengine.com) (66.111.4.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 05 May 2017 10:06:00 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 7F2BB2090E for ; Fri, 5 May 2017 06:06:01 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Fri, 05 May 2017 06:06:01 -0400 X-ME-Sender: Received: from [192.168.1.102] (host31-51-207-210.range31-51.btcentralplus.com [31.51.207.210]) by mail.messagingengine.com (Postfix) with ESMTPA id 2FC357E59A for ; Fri, 5 May 2017 06:06:01 -0400 (EDT) Subject: Re: How to break cygwin inside dcrt0.cc ? To: The Cygwin Mailing List References: <590BDD0B.7040709@maxrnd.com> <14756c6c-cc89-fa5d-bfbb-88662445dc46@gmail.com> From: Jon Turney Message-ID: <48d5fc33-9034-19bd-fc94-10977535ec3c@dronecode.org.uk> Date: Fri, 05 May 2017 10:06:00 -0000 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> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2017-05/txt/msg00063.txt.bz2 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