./all run: use catchsegv if available
authorRudolf Polzer <divverent@alientrap.org>
Sun, 26 Sep 2010 06:51:27 +0000 (08:51 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 26 Sep 2010 06:51:27 +0000 (08:51 +0200)
all

diff --git a/all b/all
index 26c43f2e81de61ccc2a2d030550814baa4977ffa..e9489d4c1e3db071135071728d3832a06ffa37c9 100755 (executable)
--- a/all
+++ b/all
@@ -668,6 +668,8 @@ case "$cmd" in
 
                if [ -n "$USE_GDB" ]; then
                        set -- gdb --args "$@"
 
                if [ -n "$USE_GDB" ]; then
                        set -- gdb --args "$@"
+               elif which catchsegv >/dev/null 2>&1/, then
+                       set -- catchsegv "$@"
                fi
                "$@"
                ;;
                fi
                "$@"
                ;;