fullcheck.sh 526 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. VALGRIND=''
  3. if [ -x /usr/bin/valgrind -o -x /opt/local/bin/valgrind ]; then
  4. VALGRIND="valgrind -q --track-origins=yes"
  5. if [ `uname` = "Darwin" ]; then
  6. VALGRIND="$VALGRIND --dsymutil=yes"
  7. fi
  8. fi
  9. #export MallocGuardEdges=1
  10. #export MallocScribble=1
  11. #export MallocPreScribble=1
  12. #export MallocCheckHeapStart=100
  13. #export MallocCheckHeapEach=100
  14. #export DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib
  15. #export MALLOC_PROTECT_BEFORE=1
  16. #export MALLOC_FILL_SPACE=1
  17. #export MALLOC_STRICT_SIZE=1
  18. exec $VALGRIND $@