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:to:subject:references:from:date:in-reply-to :message-id:mime-version:content-type; q=dns; s=default; b=xF8gM /xzstl0UMSEmQG2mKdHAyzOEF8XrYhae0R60aFuYIq7UGh7EOPpKSFF4YH2ALxeq LA6ovNWjHwIT7OTZ1vixPDCiHCB0HtiO63dqao3+UMyUnZ81BB47pLreiWa+1gkM stj5lu8e/Lt50KMx6PoY2Rk6E8WGXL9gJA5SXE= 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:to:subject:references:from:date:in-reply-to :message-id:mime-version:content-type; s=default; bh=iKMviOmdipU b2/E88Imac0AkD+k=; b=LS0Hyujgdb3TqCtfqffv2XX04F9ceWJXrRLFPRjXyBA YijaL8v9Ykw8FOtcxA7Pm3su1mx5+JnH4OYM2hbULiAMHebmUOYx6vYVE0f3491V FFADN8Sk7HooRPseRMJBEkC92BessofD75k2+zWYjW5/QFu8OLL9JEfSSUAFqxDk = 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=-1.8 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: treacle.ucs.ed.ac.uk To: cygwin AT cygwin DOT com Subject: Re: Debugging sub-processes with gdb References: <20140514152505 DOT GB6620 AT ednor DOT casa DOT cgf DOT cx> From: ht AT inf DOT ed DOT ac DOT uk (Henry S. Thompson) Date: Wed, 14 May 2014 16:36:59 +0100 In-Reply-To: <20140514152505.GB6620@ednor.casa.cgf.cx> (Christopher Faylor's message of "Wed\, 14 May 2014 11\:25\:05 -0400") Message-ID: User-Agent: Gnus/5.101 (Gnus v5.10.10) XEmacs/21.5-b33 (linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Edinburgh-Scanned: at treacle.ucs.ed.ac.uk with MIMEDefang 2.60, Sophie, Sophos Anti-Virus, Clam AntiVirus X-IsSubscribed: yes Christopher Faylor writes: > On Wed, May 14, 2014 at 04:10:36PM +0100, Henry S. Thompson wrote: >>I'm trying to debug a problem with xemacs that involves the child >>process forked when you execute M-x shell. >> >>None of the mechanisms in the gdb documentation for choosing to step >>into the child process (instead of the parent) after a fork() seem to >>work for me. That is, in particular, setting follow-for-mode to child >>still leaves me in the parent after stepping over a fork(). >> >>Setting detach-on-fork to 'off' also seems to have no effect. >> >>Have I misunderstood something, or does this aspect of gdb just not >>work under cygwin (x86_64, 1.7.29-2)? > > Debugging subprocesses doesn't work for Windows gdb. Sorry. Thanks for confirming. > If you have control over the code you could have it print a pid, wait, > and then attach to it with gdb. That works. Understood, will do. ht -- Henry S. Thompson, School of Informatics, University of Edinburgh 10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440 Fax: (44) 131 650-4587, e-mail: ht AT inf DOT ed DOT ac DOT uk URL: http://www.ltg.ed.ac.uk/~ht/ [mail from me _always_ has a .sig like this -- mail without it is forged spam] -- 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