Re: breakpoint for accessing memory location

Eli Zaretskii
2006-10-22T22:22:35Z

> Date: Sun, 22 Oct 2006 13:24:31 -0400
> From: Daniel Jacobowitz <drow@false.org>
> Cc: Eli Zaretskii <eliz@gnu.org>, gdb@sourceware.org
>
> On Sun, Oct 22, 2006 at 10:20:02AM -0500, Rodney M. Bates wrote:
> > If p is local to an inner block, but the compiler did the common thing of
> > flattening p and all its cousins into one activation record for the
> > containing
> > function, does the watchpoint really get deleted when execution leaves the
> > block, or when the containing function returns?
>
> When the debug info says it goes out of scope, or more specifically,
> when GDB no longer knows where to find it.

Don't we record the frame in the watchpoint structure? If so, the
watchpoint is deleted when its frame is popped off the stack.