Fix to not run gdbserver.
[nethome.git] / src / gdb-wrap
index 71a5a0f..4b2d025 100755 (executable)
@@ -1,14 +1,17 @@
 #! /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
-       FILE=DIR/`printf %02d $i`
+       FILE=$DIR/`printf %02d $i`
        if ! test -f $FILE;then
                break
        fi
        i=$[$i+1]
 done
-exec strace -s200 -o $FILE -q "$0"-orig "$@"
+exec strace -s2000 -o $FILE -q "$0"-orig "$@"