summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc/grind.sh
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-21 13:00:21 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-21 13:00:21 +0000
commit6dc77c25f680baa205484f7f4e29e1a8f0fb20aa (patch)
treebe6fee601de7bd32a2654966a232f70a1c0e04c4 /crawl-ref/source/misc/grind.sh
parent47a3ee47e2aca536deaa2d0fc0e3685d075097b0 (diff)
downloadcrawl-ref-6dc77c25f680baa205484f7f4e29e1a8f0fb20aa.tar.gz
crawl-ref-6dc77c25f680baa205484f7f4e29e1a8f0fb20aa.zip
Added a convenience script for invoking Valgrind to find memory errors/bugs,
and a Valgrind suppressions file to suppress things that either aren't really memory bugs or are bugs in third party libraries which we can't fix. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7526 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc/grind.sh')
-rwxr-xr-xcrawl-ref/source/misc/grind.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/misc/grind.sh b/crawl-ref/source/misc/grind.sh
new file mode 100755
index 0000000000..568069a6a7
--- /dev/null
+++ b/crawl-ref/source/misc/grind.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# Convenience caller for the valgrind memory debugger
+
+nice -n 7 valgrind --tool=memcheck --leak-check=full --log-file=grind.log \
+ --suppressions=misc/valgrind-suppress.txt ./crawl $*