breakpoint for accessing memory location

Eli Zaretskii eliz@gnu.org
Tue Oct 24 04:32:00 GMT 2006


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



More information about the Gdb mailing list