On Tue, Feb 17, 2009 at 11:00 PM, Chengnian Sun <[email protected]> wrote:
>
> Is it possible to get the types and values of arguments with Valgrind?

It's difficult to do at the binary level.  You probably need debug
info to know what args a function is expecting, you probably can't
just tell from the instruction stream.

> I would like to instrument applications to get the execution trace including
> the functions called and their argument values and types.

The Callgrind tool is able to trace function entry/exit.  And the
--read-var-info option causes debug info for stack variables to be
read.  It might be possible to combine the two to get what you want,
but it would require non-trivial effort.

Nick

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to