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:from:date:message-id:mime-version :content-type; q=dns; s=default; b=INFlh+TTbBmCWNzzPhlR4UZE7PV7U wfvsBXV+Ua+p5cBGAfG0wVskxhNxYDogzzeMzyuWMlHmwGp+BtAqM0DG1ng9HJ1J qa9+WzJ4Jf6XjKRstTjUmUMswQRG76VijixGmuTAlCKc1hbhgeUB26txpeEIR8a8 JASYDP6WA1WJmY= 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:from:date:message-id:mime-version :content-type; s=default; bh=zHcZuSLn9/8LH7PWJDjh6V8qs/0=; b=Sj3 u2eKiD7rI13w9nHw90fuv78PUGnEY2HhtVNLtpUfPbE1g2X21+7A21YQzJfZvZsw 894tU07v6ObMDW1NYbsWj453/fWDKTj69K/nM9HYMUVoSpESwTSPXDTXDH5mGUOe /2Zag1WOCzoxs7R4ob52huiOH6HZAyenb5swV1OI= 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: Debugging sub-processes with gdb From: ht AT inf DOT ed DOT ac DOT uk (Henry S. Thompson) Date: Wed, 14 May 2014 16:10:36 +0100 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 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)? Thanks, 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