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 Elizabeth Chastain <mec at shout dot net>
- To: ac131313 at cygnus dot com
- Cc: fnf at redhat dot com, gdb-patches at sources dot redhat dot com, msnyder at redhat dot com
- Date: Thu, 2 May 2002 10:48:00 -0500
- Subject: Re: [RFA] Fix problem with watchpoint test in gdb.base/commands.exp
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.
Michael C