]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
bin/valgrind{,-ptr}.sh: Add.
authorSimon Ruderich <simon@ruderich.org>
Fri, 3 Dec 2010 11:39:16 +0000 (12:39 +0100)
committerSimon Ruderich <simon@ruderich.org>
Fri, 3 Dec 2010 11:39:16 +0000 (12:39 +0100)
Useful options for valgrind.

bin/valgrind-ptr.sh [new file with mode: 0755]
bin/valgrind.sh [new file with mode: 0755]

diff --git a/bin/valgrind-ptr.sh b/bin/valgrind-ptr.sh
new file mode 100755 (executable)
index 0000000..965a587
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+valgrind --tool=exp-ptrcheck --error-exitcode=1 "$@"
diff --git a/bin/valgrind.sh b/bin/valgrind.sh
new file mode 100755 (executable)
index 0000000..dd8038a
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+valgrind --leak-check=full --show-reachable=yes --error-exitcode=1 "$@"