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=wZtWFGmKR5wS2tG8 U0TNAHt9CSjWe125Vxy1WG7zTw4qrrnNGt8Zt7Rm9WsnyJHQdp1sI5p8EGALivju Vn4M2wXMaGCzi0XpKIlL0fk5jPyzTuaBaKRDSe57JaaX5wRtxCqYayH6dC1dQ7wL wt9s6LfZaE6DX9PTEnhBwI/KOB4= 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=eatCdW8e4BXKaKcEgEtns5 SEy44=; b=kLbMomnCt+Z2bnmPifM9zPzkJ32Pqv8yTDGn4cCFaWoWiPe4tmOJRs iS1pR1YuPSvTD+IkqqcfFvj6sVwLEI4bwghxif+QKQ/gwY82KCP7bdSXCX/zVFx4 k6wAUMEZS4JQR9lWv+KUBQgXFUDXDMK7ywxG13RtKCHMQR36Ympno= 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-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*UA:Firefox, H*F:U*mark X-HELO: m0.truegem.net Subject: Re: How to break cygwin inside dcrt0.cc ? To: cygwin AT cygwin DOT com References: From: Mark Geisert Message-ID: <590BD2A3.8000706@maxrnd.com> Date: Thu, 4 May 2017 18:17:23 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 > > Is dcrt0.cc built differently than the rest of cygwin dll ? WFM. This is with self-built cygwin1.dll. Only obvious difference is my build directory is set up like FAQ says, building in /oss/build and with /oss/src symlinked to where Cygwin source tree resides. Here's what that looks like: ~/src/forker gdb forker GNU gdb (GDB) (Cygwin 7.10.1-1) 7.10.1 [...] Reading symbols from forker...done. (gdb) b child_info_fork::alloc_stack Function "child_info_fork::alloc_stack" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (child_info_fork::alloc_stack) pending. (gdb) b main Breakpoint 2 at 0x100401253: file forker.c, line 158. (gdb) r 1 Starting program: /home/Mark/src/forker/forker 1 [New Thread 12628.0x494] [New Thread 12628.0x327c] Breakpoint 2, main (argc=2, argv=0xffffcc10) at forker.c:158 158 if (argc != 2) { (gdb) i br Num Type Disp Enb Address What 1 breakpoint keep y 0x0000000180046350 in child_info_fork::alloc_stack() at /oss/src/winsup/cygwin/dcrt0.cc:407 2 breakpoint keep y 0x0000000100401253 in main at forker.c:158 breakpoint already hit 1 time (gdb) ..mark -- 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