This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Fix problem with watchpoint test in gdb.base/commands.exp
- From: Michael Snyder <msnyder at redhat dot com>
- To: Michael Elizabeth Chastain <mec at shout dot net>
- Cc: ac131313 at cygnus dot com, fnf at redhat dot com, gdb-patches at sources dot redhat dot com
- Date: Thu, 02 May 2002 11:05:51 -0700
- Subject: Re: [RFA] Fix problem with watchpoint test in gdb.base/commands.exp
- Organization: Red Hat, Inc.
- References: <200205021548.g42Fm0N21089@duracef.shout.net>
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.