On Friday 08 July 2011, pankaj pawan wrote:
> I know the arguments and their types.
> I can get the stackpointer during
> runtime but  how do I read the stack after that.
> Can I read memory just by dereferencing the stack pointer?

VEX of course can read from memory, see IRExpr_Load.
Or if you instrument a call back function, this function can
just access memory on the client stack (e.g. if you pass the stack
pointer as parameter).
Be note that this is platform dependend.

Another option is use wrapper functions, see 3.2 at
        http://valgrind.org/docs/manual/manual-core-adv.html

Josef

> Could you point to some functions which will help me in doing so.
> 
> Regards,
> pankaj
> 



------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to