From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6373 invoked by alias); 15 Feb 2011 00:36:00 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 6206 invoked by uid 22791); 15 Feb 2011 00:36:00 -0000 X-SWARE-Spam-Status: No, hits=-4.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Oleg Nesterov X-Fcc: ~/Mail/utrace Cc: Project Archer Subject: Re: ptrace improvement: PTRACE_O_INHERIT In-Reply-To: Oleg Nesterov's message of Monday, 14 February 2011 20:38:12 +0100 <20110214193812.GA20765@redhat.com> References: <20110203223905.D0C77180081@magilla.sf.frob.com> <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> Message-Id: <20110215003551.BC1EA1802A2@magilla.sf.frob.com> Date: Tue, 15 Feb 2011 00:36:00 -0000 X-SW-Source: 2011-q1/txt/msg00052.txt.bz2 > I meant, I do not agree that it never makes sense to trace, say, a > single thread from the thread group. But since we are talking about > gdb my noncompliance is off-topic. We are also talking about what makes sense for a kernel interface, so it's certainly apropos to share our thoughts on the general subject. Please elaborate on why you think this makes sense. It's certainly true that it makes sense to have your tracing details different for one thread than for others (stopping on more events, etc.) but that's quite a different thing from saying it really makes sense to have a debugging interface structured to consider tracing an individual thread as unrelated to tracing all the threads in the same process, as Linux's ptrace is today. I can't really imagine what you have in mind, so please tell me. Thanks, Roland