This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: breakpoint for accessing memory location


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]