Am 23.07.2012 19:08, schrieb Mikael Jansson:
> + VG_(printf)("S %p\n", ist->Store.addr)
> ...
> Have I misunderstood how ist->Store.addr is supposed to be used,

Yes. IRStmt.Store.addr is of type IRExpr*. You are printing out
the address of a structure used for the VEX IR while instrumentation
of a code block is done. The code behind never was executed yet!

To get to the real address, you have to catch it while code is
executed, e.g. by instrumenting a call to your own function when
a store is done. See lackey for how to do that.

Josef


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to