Re: Watchpoints with condition

Daniel Jacobowitz
2007-11-30T23:49:02Z

On Fri, Nov 30, 2007 at 03:30:21PM -0800, Jim Blandy wrote:
> Isn't that equivalent to 'watch foo == 1'?

Not quite.

watch foo == 1

stops when foo becomes 1 or non-1.

watch foo if foo == 1

stops only when foo becomes 1.

--
Daniel Jacobowitz
CodeSourcery