Initial untested version.
authorlace <>
Thu, 28 Jun 2007 07:54:50 +0000 (07:54 +0000)
committerlace <>
Thu, 28 Jun 2007 07:54:50 +0000 (07:54 +0000)
src/gdb-wrap [new file with mode: 0755]

diff --git a/src/gdb-wrap b/src/gdb-wrap
new file mode 100755 (executable)
index 0000000..71a5a0f
--- /dev/null
@@ -0,0 +1,14 @@
+#! /bin/sh
+# $Id$
+
+DIR=/tmp/gdb.d
+mkdir -p $DIR
+i=0
+while true;do
+       FILE=DIR/`printf %02d $i`
+       if ! test -f $FILE;then
+               break
+       fi
+       i=$[$i+1]
+done
+exec strace -s200 -o $FILE -q "$0"-orig "$@"