This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: How to watch for changes in a location of memory
On date Friday 2008-08-08 10:37:50 +0200, Eran Ifrah wrote:
> You might want to try the 'watch' command which will causes gdb to
> break whenever the memory at a given addr has been modified
>
> Read here for more details:
>
> http://sources.redhat.com/gdb/current/onlinedocs/gdb_6.html#SEC34
Thank you for the good pointer, yes indeed it seems it does what I
want, which is basically:
watch &ctx->foo;
and yes I'll try to RTFM before to post a question the next time!!
[...]
Regards.