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: [RFA/Ada] Implement Ada tasking support (take 2)


On Saturday 27 September 2008 00:22:04, Tom Tromey wrote:
> I thought I heard an argument to the effect that thread-specificity
> could be more efficiently implemented at a low level, at least in
> theory, on some platforms. ?(I don't know. ?And that is mighty vague.)

That is usually brought about in the remote target context.  Currently,
a thread specific breakpoint is implemented by letting any thread hit
it, and then having GDB's inferior control side check if it was the
thread the user specified --- if so, stop; or, if some other thread hit
it --- then resume immediatelly.  If the thread associated with
the breakpoint is communicated to the lower target layers, we can minimize
this overhead by having the target itself filter those uninteresting
breakpoint hits.  This extra overhead is of course more visible when
you have a serial communication protocol in the middle.  Currently,
the remote protocol has no support for thread-specific breakpoints,
though, so usually talking about this ends up with a 'IWBN'.

-- 
Pedro Alves


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