./all run: use catchsegv if available
[xonotic/xonotic.git] / 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 "$@"
+               elif which catchsegv >/dev/null 2>&1/, then
+                       set -- catchsegv "$@"
                fi
                "$@"
                ;;