From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9910 invoked by alias); 12 Jan 2006 20:48:07 -0000 Received: (qmail 9902 invoked by uid 22791); 12 Jan 2006 20:48:07 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 12 Jan 2006 20:48:05 +0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.4/8.13.4) with ESMTP id k0CKm0uU028276; Thu, 12 Jan 2006 21:48:00 +0100 (CET) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.4/8.13.3) with ESMTP id k0CKm0LL016089; Thu, 12 Jan 2006 21:48:00 +0100 (CET) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.4/8.13.4/Submit) id k0CKm0pQ023554; Thu, 12 Jan 2006 21:48:00 +0100 (CET) Date: Thu, 12 Jan 2006 20:48:00 -0000 Message-Id: <200601122048.k0CKm0pQ023554@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: brobecker@adacore.com CC: gdb-patches@sources.redhat.com In-reply-to: <20060112060939.GK676@adacore.com> (message from Joel Brobecker on Thu, 12 Jan 2006 10:09:39 +0400) Subject: Re: [RFC] New function find_target_at_stratum() ? References: <20060112060939.GK676@adacore.com> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-01/txt/msg00131.txt.bz2 > Date: Thu, 12 Jan 2006 10:09:39 +0400 > From: Joel Brobecker > > Hello, > > While learning a bit more about the target vector and the target > stack, and how it is used, I noticed that two files, sol-thread.c > and uw-thread.c make an explicit reference to the procfs_ops target > vector. > > Looking at the code, the idea is to implement one target method at > the thread level by first using the same method at the process level > and then by performing the necessary operations to handle threads. > > [snip] > > To be complete, I think the current public interface already allows us > to find the target vector at any stratum. Just by using current_target > and find_target_beneath(). I just thought that the new proposed function > might be of general interest? > > Thoughts? Well, what sol-thread does is really completely bogus. It should simply be rewritten such that it can sit on top of both the process and core target and use find_target_beneath(). Mark