From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31168 invoked by alias); 19 May 2009 09:56:53 -0000 Received: (qmail 31158 invoked by uid 22791); 19 May 2009 09:56:52 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 19 May 2009 09:56:47 +0000 Received: (qmail 31853 invoked from network); 19 May 2009 09:56:46 -0000 Received: from unknown (HELO orlando) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 19 May 2009 09:56:46 -0000 From: Pedro Alves To: Doug Evans Subject: Re: Workaround for glibc/BZ5983: following a child fork shows stale parent threads in the child. Date: Tue, 19 May 2009 09:56:00 -0000 User-Agent: KMail/1.9.10 Cc: gdb-patches@sourceware.org References: <200905181813.48596.pedro@codesourcery.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905191056.45861.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-05/txt/msg00396.txt.bz2 On Tuesday 19 May 2009 07:26:07, Doug Evans wrote: > This works, but only because of an assumption of the strlen including > the trailing NUL in "Tgid:" consuming the TAB between "Tgid:" and the > number. > We should probably document that (or make the parsing more robust). You've lost me somewhere around the "assumption of the strlen including the trailing NUL". The tab/space is consumed by strtoul. -- Pedro Alves