This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] New function find_target_at_stratum() ?


> Date: Thu, 12 Jan 2006 10:09:39 +0400
> From: Joel Brobecker <brobecker@adacore.com>
> 
> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]