|
From: Josef W. <Jos...@gm...> - 2011-07-08 13:51:40
|
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 > |