On Sun, Aug 2, 2009 at 8:47 AM, Julian Seward<[email protected]> wrote:
> On Sunday 02 August 2009, Iain wrote:
>> I've been hacking a simple valgrind tool that tracks calls to certain
>> functions, and I was able to use the lackey code to work out how to do
>> that,
>> but I can't work out how to get the parameters the the function is called
>> with.
>>
>> To be honest, I'm not even sure if this information is stored in the
>> VEX IR stuff anyway, or if I'm going about this in completely the
>> wrong way.
>
> It's not in there.  If you want to see an example of an API
> checker (something that intercepts functions, checks their
> args somehow, and calls onwards to the intercepted function)
> have a look at auxprogs/libmpiwrap.c.

Ah, thanks, I was way off. Whoops.

iain

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to