Behavior of 'until' command
Andrew Cagney
ac131313@redhat.com
Wed Nov 13 11:42:00 GMT 2002
> 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))));
}
Andrew
More information about the Gdb
mailing list