This is the mail archive of the
gdb@sourceware.org
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: <200711301925.20196.vladimir@codesourcery.com> <uhcj31lko.fsf@gnu.org> <m3eje7ux9u.fsf@codesourcery.com> <20071130234853.GA27583@caradoc.them.org> <m3odd74qam.fsf@codesourcery.com> <uodd7ze86.fsf@gnu.org> <m37ijvz8bc.fsf@codesourcery.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Cc: gdb@sourceware.org
> From: Jim Blandy <jimb@codesourcery.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.