Re: Watchpoints with condition

Eli Zaretskii
2007-12-01T09:16:05Z

> From: Michael Snyder <msnyder@specifix.com>
> Cc: gdb@sources.redhat.com
> Date: Fri, 30 Nov 2007 17:32:51 -0800
>
> > I frequently need to enable or set a breakpoint only if another
> > previous point in the program has been passed. How do i do that?
>
>
> set $passed_milestone = 0
> break milestone_func
> commands
> silent
> set $passed_milestone = 1
> end
> break conditional_func if ($passed_milestone)

Or just

tbreak milestone_func
commands
silent
break conditional_func
continue
end