From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24765 invoked by alias); 16 Feb 2011 20:48:59 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 24756 invoked by uid 22791); 16 Feb 2011 20:48:58 -0000 X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Date: Wed, 16 Feb 2011 20:48:00 -0000 From: Oleg Nesterov To: Roland McGrath Cc: Project Archer Subject: Re: ptrace improvement: PTRACE_O_INHERIT Message-ID: <20110216204046.GB18694@redhat.com> References: <20110210195212.GA3868@redhat.com> <20110211192423.78FFC1802A2@magilla.sf.frob.com> <20110211203755.GA5367@redhat.com> <20110212005855.E764C1814A4@magilla.sf.frob.com> <20110212190253.GA31866@redhat.com> <20110214193052.3EC8D1814BA@magilla.sf.frob.com> <20110214193812.GA20765@redhat.com> <20110215003551.BC1EA1802A2@magilla.sf.frob.com> <20110215130805.GA30742@redhat.com> <20110215221723.9597E1806E0@magilla.sf.frob.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110215221723.9597E1806E0@magilla.sf.frob.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-SW-Source: 2011-q1/txt/msg00076.txt.bz2 On 02/15, Roland McGrath wrote: > > Quite simply, the notion of considering a thread in > isolation from its process just does not make any sense to me at all from > the perspective of a user or a debugger or anything in userland, And this is what I can't understand. Despite the fact I have read your email many times. > This is an example of how the clean, new, non-ptrace, high-level interface > that I always imagined would be far more natural. In that notion, the > debugger would define a "tracing group" (always needed a better term for > that) that is its handle on referring to what it's doing in the interface. Yes, agreed. The sane interface should use something, say, fd which (at least) allows to detach all tracees or set some options for all of them. And of course attach-the-whole-process makes a lot of sense. But at the same time attach-this-particular-thread looks very natural to me. > But, all that > gets us away into the land of "good ideas" rather than "ptrace improvement". Yes. Oleg.