Re: [RFA] Fix problem with watchpoint test in gdb.base/commands.exp

Michael Snyder
2002-05-02T18:22:03Z

Michael Elizabeth Chastain wrote:
>
> Andrew Cagney writes:
>
> > ... so there may not necessarily be a frame change.
>
> Right.
>
> > However, if the frame has gone (or is being destroyed) the variable
> > is out of scope.
>
> The problem is with the recursive case, where there are several frames
> which map to the same line numbers, and several instances of the variable.
> gdb could have bugs where it creates a watchpoint for one of these frames,
> but then deletes it when an inferior frame exits. With this patch,
> the test suite wouldn't detect such a bug.

Right, I agree.