This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: breakpoint for accessing memory location
> Date: Sun, 22 Oct 2006 19:18:47 -0400
> From: Daniel Jacobowitz <drow@false.org>
> Cc: dewar@adacore.com, rodney.bates@wichita.edu, gdb@sourceware.org
>
> > Trouble? what trouble? Just sample the value of the expression for
> > several random values of the variables, and if the value doesn't
> > change, consider it constant.
>
> Was this sarcasm? If not, please consider "watch p != 42" for a couple
> of random values of p.
If that couple includes 42, then all is okay.