Fix to not run gdbserver.
[nethome.git] / src / gdb-wrap
index a33414e..4b2d025 100755 (executable)
@@ -1,7 +1,10 @@
 #! /bin/sh
-# $Id$
 
-DIR=/tmp/gdb.d
+TMP=/tmp
+if [ -d $TMP/server ];then
+       TMP=$TMP/server
+fi
+DIR=$TMP/gdb.d
 mkdir -p $DIR
 i=0
 while true;do
@@ -11,4 +14,4 @@ while true;do
        fi
        i=$[$i+1]
 done
-exec strace -s200 -o $FILE -q "$0"-orig "$@"
+exec strace -s2000 -o $FILE -q "$0"-orig "$@"