On 10/13/2011 09:56 AM, Gerd Hoffmann wrote:
Is there some way for apps to figure they are running in valgrind? Then we could choose a different alignment automagically.
Yes, valgrind.h (on RH distros that's in package valgrind-devel; there is a valgrind.pc file to add the correct include path) provides a RUNNING_ON_VALGRIND macro.
Paolo