Re: Watchpoints with condition

Eli Zaretskii
2007-12-04T04:23:44Z

> 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.