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

Michael Snyder msnyder@redhat.com
Thu May 2 11:23:00 GMT 2002


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?



More information about the Gdb-patches mailing list