This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Behavior of 'until' command
Andrew Cagney writes:
> > Similarly from foo line 15 where should 'until fun2' take me? Inside
> >> fun2, at line 10? Or at line 16? Currently I end up at line 22 which
> >> is in main. This seems clearly wrong either way.
> >>
> >> Any thoughts?
> >
> >
> > Your reading sounds right to me. If you look at the output of 'set
> > debug target 1' in your example, we set and hit the breakpoint in fun2
> > and then decide to continue for some reason - that's got to be a bug.
> >
> > If you have a chance this would make a great testcase.
>
> In fact I'm sure it once worked? Being able to use `until fun2' in
> cases like:
>
> foo ()
> {
> return (a + b + foo() + bar() + fun2(bar(bax))));
> }
>
Yes. So all agree that
"until fun2" == "break fun2; continue" ??
Elena
> Andrew
>