|
From: Nicholas N. <n.n...@gm...> - 2009-02-17 23:25:13
|
On Tue, Feb 17, 2009 at 11:00 PM, Chengnian Sun <che...@ya...> 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 |