On 29/03/11 15:33, Jason Kraftcheck wrote:

> Can anyone offer any suggestions about how to use valgrind in an environment
> which doesn't support shared libraries?  I could staticly link the valgrind
> components into my program but it isn't clear how to handle initialization,
> startup, etc.  The first problem will be the multiple main routines.

Well valgrind is mostly static - the only place it uses shared libraries
is to inject it's malloc etc replacements into your programs.

If you really want to do this, it is only the code from the various
vgpreload*.so libraries that you need to link into your program. You
should then still be able to use valgrind in the normal way.

Tom

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

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to