Maybe you can construct something with gdb watch points. I haven't tried 
scripting an event to occur on a watch point or breakpoint but it seems like 
the sort of thing gdb should be good at 

Sent from my iPhone

On Oct 3, 2012, at 10:47, Pansy Arafa <[email protected]> wrote:

> Hi,
> 
> How can I use Valgrind to trace variables? i.e. extract the values of certain 
> variables during the program execution. I know I can use gdb with Valgrind, 
> but I don't want to interrupt the execution. I want Valgrind to write the 
> value of the variable to console or a log file once the variable gets updated.
> 
> Thanks.
> 
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> Valgrind-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/valgrind-users

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to