I know valgrind can notice invalid accesses to memory even when the OS doesn't, by some sort of magic instrumentation.
My question: Can I tell it, at runtime and assuming my program is being run by valgrind, to start monitoring (write) accesses to a certain region of memory (which I specify at run time)? So that valgrind will blurt something out when this access happens, along with a stack trace?