mu: add memcheck script for valgrinding
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@ -99,3 +99,9 @@ build-aux/
|
|||||||
/perf.data
|
/perf.data
|
||||||
perf.data
|
perf.data
|
||||||
perf.data.old
|
perf.data.old
|
||||||
|
*vgdump
|
||||||
|
/lib/asan.log*
|
||||||
|
/man/mu-mfind.1
|
||||||
|
/mu/mu-memcheck
|
||||||
|
mu-*-coverage
|
||||||
|
mu*tar.xz
|
||||||
|
|||||||
@ -252,6 +252,7 @@ AC_SUBST(MU_DOC_DIR, "${prefix}/share/doc/mu")
|
|||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
Makefile
|
Makefile
|
||||||
mu/Makefile
|
mu/Makefile
|
||||||
|
mu/mu-memcheck
|
||||||
lib/Makefile
|
lib/Makefile
|
||||||
lib/doxyfile
|
lib/doxyfile
|
||||||
lib/utils/Makefile
|
lib/utils/Makefile
|
||||||
@ -269,6 +270,8 @@ toys/mug/Makefile
|
|||||||
man/Makefile
|
man/Makefile
|
||||||
m4/Makefile
|
m4/Makefile
|
||||||
contrib/Makefile
|
contrib/Makefile
|
||||||
|
],[
|
||||||
|
[chmod +x mu/mu-memcheck]
|
||||||
])
|
])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
|
|||||||
6
mu/mu-memcheck.in
Normal file
6
mu/mu-memcheck.in
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
export G_SLICE=always-malloc
|
||||||
|
export G_DEBUG=gc-friendly
|
||||||
|
|
||||||
|
libtool --mode=execute valgrind --tool=memcheck --leak-check=full --show-possibly-lost=no --leak-resolution=med --track-origins=yes --num-callers=20 --log-file='@abs_top_builddir@/mu-%p.vgdump' @abs_top_builddir@/mu/mu $@
|
||||||
Reference in New Issue
Block a user