This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Behavior of 'until' command


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]