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

Michael Snyder
2002-05-02T18:23:32Z

Eli Zaretskii wrote:
>
> On Thu, 2 May 2002, Michael Elizabeth Chastain wrote:
>
> > gdb.texinfo says:
> >
> > @value{GDBN} automatically deletes watchpoints that watch local
> > (automatic) variables, or expressions that involve such variables, when
> > they go out of scope, that is, when the execution leaves the block in
> > which these variables were defined.
>
> Btw, I think this is a misfeature: GDB should disable the watchpoints,
> but not delete them.

Hmmm... I thought that was (effectively) what happened.
I know there's an invisible "out of scope" breakpoint sometimes,
and I thought it was that breakpoint that was deleted, not the
watchpoint itself. Was I wrong?