This is the mail archive of the
mailing list for the GDB project.
Re: Watchpoints with condition
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Jim Blandy <jimb at codesourcery dot com>
- Cc: gdb at sourceware dot org
- Date: Tue, 04 Dec 2007 06:23:34 +0200
- Subject: Re: Watchpoints with condition
- References: <firstname.lastname@example.org> <email@example.com> <firstname.lastname@example.org> <20071130234853.GA27583@caradoc.them.org> <email@example.com> <firstname.lastname@example.org> <email@example.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Cc: firstname.lastname@example.org
> From: Jim Blandy <email@example.com>
> Date: Mon, 03 Dec 2007 15:07:19 -0800
> In the use case you mention, why wouldn't 'watch v == X'; 'watch v ==
> Y'; etc. have worked for you? You would have gotten more hits than
> you'd like, but only twice as many --- is that right?
It would have shown me hits I don't want to see, yes. And it is more
natural to write "watch X if X == 1" than what you suggest.