From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14845 invoked by alias); 5 May 2017 01:17:30 -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 14836 invoked by uid 89); 5 May 2017 01:17:30 -0000 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 Received: from m0.truegem.net (HELO m0.truegem.net) (69.55.228.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 05 May 2017 01:17:27 +0000 Received: (from daemon@localhost) by m0.truegem.net (8.12.11/8.12.11) id v451HSv8061979 for ; Thu, 4 May 2017 18:17:28 -0700 (PDT) (envelope-from mark@maxrnd.com) Received: from 76-217-5-154.lightspeed.irvnca.sbcglobal.net(76.217.5.154), claiming to be "[192.168.1.100]" via SMTP by m0.truegem.net, id smtpdglDn4Q; Thu May 4 18:17:22 2017 Subject: Re: How to break cygwin inside dcrt0.cc ? To: cygwin@cygwin.com References: From: Mark Geisert Message-ID: <590BD2A3.8000706@maxrnd.com> Date: Fri, 05 May 2017 01:17:00 -0000 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 X-SW-Source: 2017-05/txt/msg00057.txt.bz2 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