This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Watchpoints in multithreaded programs
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Steve Freeland <caucasatron at yahoo dot ca>
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 25 Apr 2007 22:36:30 +0200
- Subject: Re: Watchpoints in multithreaded programs
- References: <20061001212327.86189.qmail@web34208.mail.mud.yahoo.com>
Hi,
please check the patches
gdb-6.3-threaded-watchpoints-20041213.patch
gdb-6.3-threaded-watchpoints2-20050225.patch
in
http://download.fedora.redhat.com/pub/fedora/linux/core/development/source/SRPMS/gdb-6.6-8.fc7.src.rpm
Going to check there some recent Linux kernels compatibility problems, though.
Regards,
Jan
On Sun, 01 Oct 2006 23:23:27 +0200, Steve Freeland wrote:
> Hello,
>
> What is the status of gdb's support for watchpoint in multithreaded apps?
>
> The manual states here: http://sources.redhat.com/gdb/current/onlinedocs/gdb_6.html#SEC34 that "With the current watchpoint implementation, GDB
> can only watch the value of an expression in a single thread."
>
> However, there's a thread on gdb-patches here from 2004 that seems to indicate that this
> limitation was in the process of being eliminated: http://sources.redhat.com/ml/gdb-patches/2004-12/msg00256.html
>
> So... I'm a bit confused. Is the manual out of date? Did the "watchthreads" patch never make
> it into mainline builds for some reason?
>
> Thanks in advance,
> - Steve