From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31699 invoked by alias); 13 Dec 2008 01:07:20 -0000 Received: (qmail 31690 invoked by uid 22791); 13 Dec 2008 01:07:20 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 13 Dec 2008 01:06:11 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id CFE8B1053D; Sat, 13 Dec 2008 01:06:08 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id B149A10499; Sat, 13 Dec 2008 01:06:08 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1LBIxL-0005Z0-E3; Fri, 12 Dec 2008 20:06:07 -0500 Date: Sat, 13 Dec 2008 01:07:00 -0000 From: Daniel Jacobowitz To: Doug Evans Cc: gdb@sourceware.org Subject: Re: gdbserver ptrace not doing waitpid after attaching to threads? Message-ID: <20081213010607.GA21370@caradoc.them.org> Mail-Followup-To: Doug Evans , gdb@sourceware.org References: <20081212211315.57CE01C7A79@localhost> <20081212212838.GA8833@caradoc.them.org> <20081212231626.GA15292@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2008-05-11) 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: 2008-12/txt/msg00051.txt.bz2 On Fri, Dec 12, 2008 at 03:21:36PM -0800, Doug Evans wrote: > Right, new threads could be created after the SETOPTIONS goes into > affect. But I'm still unclear whether SETOPTIONS will deliver threads > that have already been created and exist when gdbserver attaches. Nope. You need a different mechanism for that; either libthread_db as today, or /proc/pid/task/. -- Daniel Jacobowitz CodeSourcery