Watchpoints with condition

Daniel Jacobowitz drow@false.org
Fri Nov 30 23:49:00 GMT 2007


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



More information about the Gdb mailing list