|
From: Pansy A. <pa...@uw...> - 2012-10-03 15:00:02
|
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. |
|
From: Leif W. <lei...@gm...> - 2012-10-03 15:21:26
|
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 <pa...@uw...> 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 > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users |
|
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>
--
|
|
From: Tomislav J. <tom...@my...> - 2012-10-03 16:54:13
|
Hi,
I have a tracing tool, based on lackey, which maps data addresses
back to source code variables including their values during execution.
Think this will help?
http://csrl.unt.edu/gleipnir
Regards,
Tommy
On 10/03/2012 09:47 AM, Pansy Arafa 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
> Val...@li...
> https://lists.sourceforge.net/lists/listinfo/valgrind-users
>
--
Tomislav Janjusic [tja...@un...]
Computer Systems Research Laboratory
University of North Texas
Denton, Texas
|