This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Watchpoints stopping GDB on specific threads
- From: Daniel Jacobowitz <drow at false dot org>
- To: Luis Machado <luisgpm at linux dot vnet dot ibm dot com>
- Cc: gdb at sourceware dot org
- Date: Tue, 14 Aug 2007 12:41:54 -0400
- Subject: Re: Watchpoints stopping GDB on specific threads
- References: <1187108458.4388.14.camel@localhost>
On Tue, Aug 14, 2007 at 01:20:58PM -0300, Luis Machado wrote:
> At a first glance, i'd need to work in a different way than the
> breakpoint case, because the entire watchpoint expression is handled by
> a expression parser. It automatically processes the "thread <id>"
> parameter and of course gives an error because that's not recognized. Do
> you have any idea on how this could be solved in a clever way? We could
> start parsing the expression from the end, and try to locate the "thread
> <id>" parameter, and then hand over the remaining parameters to the
> expression parser. What do you think?
You might want to take a look at this:
http://sourceware.org/ml/gdb-patches/2005-04/msg00092.html
break *EXPRESSION thread N is the same as watch EXPRESSION thread N.
Eli suggested basically the same thing you did; it might work :-)
--
Daniel Jacobowitz
CodeSourcery