This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Watchpoints stopping GDB on specific threads
- From: Eli Zaretskii <eliz at gnu dot org>
- To: luisgpm at linux dot vnet dot ibm dot com
- Cc: gdb at sourceware dot org
- Date: Tue, 14 Aug 2007 22:41:06 +0300
- Subject: Re: Watchpoints stopping GDB on specific threads
- References: <1187108458.4388.14.camel@localhost>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Luis Machado <luisgpm@linux.vnet.ibm.com>
> Date: Tue, 14 Aug 2007 13:20:58 -0300
>
> I'm looking forward to have the same functionality for watchpoints. So
> whenever GDB detects a watchpoint trigger, it would verify the current
> thread and would stop only if the thread matches the ID we provided in a
> command like "watch <address> thread <id>". if no ID is provided, GDB
> would stop at every thread as usual (assuming a threaded watchpoint
> support).
Unless I misunderstand something fundamental, if the current thread ID
is in some variable, you could define a condition for a watchpoint,
no?