From: Julian S. <js...@ac...> - 2009-05-21 14:46:04
|
> Is there any way I could mark an interesting location in memory with > the client mechanism and then get > Valgrind to show me a backtrace everytime the location was touched? If > not it would be a really useful tool :-) yeh #include <memcheck/memcheck.h> VALGRIND_MAKE_MEM_UNADDRESSABLE(address, size); See memcheck/tests/clientperm.c for an example. J |