This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/Ada] Implement Ada tasking support (take 2)
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org, tromey at redhat dot com
- Cc: Joel Brobecker <brobecker at adacore dot com>
- Date: Sat, 27 Sep 2008 00:36:56 +0100
- Subject: Re: [RFA/Ada] Implement Ada tasking support (take 2)
- References: <20080924174850.GC3607@adacore.com> <m3od2atrvn.fsf@fleche.redhat.com>
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