This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc, rfa/doc] Multi-threaded watchpoint improvements
On Sat, Sep 22, 2007 at 04:13:24PM +0200, Eli Zaretskii wrote:
> > > > +@value{GDBN} only supports process-wide watchpoints.
> > >
> > > "Process-wide watchpoints'' as opposed to what?
> >
> > As opposed to thread-specific watchpoints. We can make a watchpoint
> > act like it is thread-specific (or we will be able to once Luis's
> > patch is done), but we don't support setting hardware watchpoints that
> > only trigger in a specific thread. Yet, anyway.
>
> I think you should add something like this explanation, to make the
> intent clear.
Is this clearer?
@value{GDBN} only supports process-wide watchpoints, which trigger in
all threads. If the target supports threads, per-thread debug
registers, and watchpoints which only affect a single thread, it
should set the per-thread debug registers for all threads to the same
value. On @sc{gnu}/Linux native targets, this is accomplished by
using @code{ALL_LWPS} in @code{target_insert_watchpoint} and
@code{target_remove_watchpoint} and by using
@code{linux_set_new_thread} to register a handler for newly created
threads.
--
Daniel Jacobowitz
CodeSourcery