From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24261 invoked by alias); 24 Dec 2012 10:18:56 -0000 Received: (qmail 24250 invoked by uid 22791); 24 Dec 2012 10:18:54 -0000 X-SWARE-Spam-Status: No, hits=-4.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 24 Dec 2012 10:18:48 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1Tn57P-0004KV-IM from Yao_Qi@mentor.com ; Mon, 24 Dec 2012 02:18:47 -0800 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 24 Dec 2012 02:18:46 -0800 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.1.289.1; Mon, 24 Dec 2012 02:18:46 -0800 Message-ID: <50D82BEF.2080407@codesourcery.com> Date: Mon, 24 Dec 2012 10:18:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120911 Thunderbird/15.0.1 MIME-Version: 1.0 To: Xingxing Pan CC: gdb Subject: Re: gdbserver multiprocess debugging References: In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-12/txt/msg00077.txt.bz2 On 12/24/2012 04:03 PM, Xingxing Pan wrote: > Hi all, > > I'm using gdbserver in gdb 7.5 to debug a program which calls fork(), > but gdbserver cannot stop the child. > > Did I miss anything? > I had a vague impression that GDBserver doesn't support following fork. I find this PR in bugzilla, fork support in the remote protocol http://sourceware.org/bugzilla/show_bug.cgi?id=13584 This PR was open one year ago, and I didn't see patches for this issue. I think that is the reason about your fail. -- Yao (齐尧)