Watchpoints with condition
Eli Zaretskii
eliz@gnu.org
Tue Dec 4 04:23:00 GMT 2007
> 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.
More information about the Gdb
mailing list