|
From: John R. <jr...@bi...> - 2012-10-03 16:49:15
|
> How can I use Valgrind to trace variables? ...
> I want Valgrind to write the value of the variable to console
> or a log file once the variable gets updated.
What's a variable? memcheck understands memory locations well,
but registers not so well. Even gdb has trouble tracking
values in registers:
(gdb) print my_variable
<optimized out>
--
|