On 04/01/11 09:52, Oliver Schneider wrote:

> Basically what would be needed is that within this function any
> allocation gets reported to Valgrind so later it won't result in
> undefined access reports, but that this function otherwise runs on the
> CPU instead of inside VEX.

It's not enough to report allocations - all writes would need to be
reported so that memory state could be updated correctly. Otherwise when
you went back to running on the real CPU you might get reports about
uninitialised memory being used because valgrind didn't realise that the
native code had initialised it.

> Does such a facility exist?

No, because it can't really work - valgrind needs to monitor the program
all the time in order to understand it's state and be able to correctly
detect and report errors.

Tom

-- 
Tom Hughes ([email protected])
http://compton.nu/

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to