This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: breakpoint for accessing memory location
> Cc: Daniel Jacobowitz <drow@false.org>, rodney.bates@wichita.edu, gdb@sourceware.org
> From: Jim Blandy <jimb@codesourcery.com>
> Date: Mon, 23 Oct 2006 15:02:30 -0700
>
> int
> foo (void)
> {
> ...;
> {
> int b = 10;
> /* X */
> ...;
> }
> /* Y */
> ...;
> }
>
> If I set a watchpoint on b at '/* X */', then that watchpoint should
> be deleted at soon as we leave the local block in which it is
> defined.
Does the debug info tell us enough to do that?