Install Valgrind on the target PowerPC machine

I have the latest Valgrind source code. I want to install Valgrind on the target machine ( powerpc ), which does not support the creation of any software tools. Therefore, I will need to compile Valgrind on my build machine (x86) for the powerpc machine. Now my question is how to install the cross compiled Valgrind on my target machine?

+6
source share
1 answer

To use the valgrind default (memcheck) tool in PPC, you need the files:

  • ./coregrind/Valgrind
  • ./coregrind/vgpreload_core-ppc32-linux.so
  • ./MemCheck/MemCheck-ppc32-Linux
  • ./MemCheck/vgpreload_memcheck-ppc32-linux.so
  • ./default.supp

After cross-compiling, copy these files to the same directory and run valgrind on the target using VALGRIND_LIB installed where they are.

For example, if all files were copied to / tmp,

 VALGRIND_LIB=/tmp /tmp/valgrind /PATH/TO/DEBUGGEE 

will launch DEBUGEE with valgrind.

+6
source

Source: https://habr.com/ru/post/901089/


All Articles