Re: breakpoint for accessing memory location

Eli Zaretskii
2006-10-24T04:32:31Z

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