Re: [RFA/PATCH] breakpoint.c: fix until command

Michael Snyder
2003-01-03T23:33:59Z

Michael Elizabeth Chastain wrote:
>
> Hi Elena,
>
> > See the thread from November on gdb@sources.
>
> Gotcha. Thanks.
>
> > I think that using decode_line_1 may be the real problem, because that
> > allows all kind of arguments to be used, just like for a breakpoint.
>
> I think the real problems are: (a) we haven't designed what should
> actually happen in all cases, and then (b) Daniel J says that some
> decision-making information is not reliable to get (when the user says
> 'until 70' gdb cannot reliably tell whether line 70 is in the current
> function).

Yes it can, unles code motion actually breaks functions into multiple
chunks. find_pc_partial_function will return the function's bounding
addresses.