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.
source share