use --pid
authorAndrew Tridgell <tridge@samba.org>
Mon, 26 Nov 2007 05:01:53 +0000 (16:01 +1100)
committerAndrew Tridgell <tridge@samba.org>
Mon, 26 Nov 2007 05:01:53 +0000 (16:01 +1100)
segv_handler/backtrace

index 8128d30..d71ff03 100755 (executable)
@@ -10,5 +10,5 @@ set height 0
 bt full
 quit
 EOF
-gdb -batch -x $TMPFILE /proc/$PID/exe $PID < /dev/null 
+gdb -batch -x $TMPFILE --pid $PID < /dev/null 2>&1
 /bin/rm -f $TMPFILE