r10527: don't attempt self gdb attach if running under valgrind. This was
authorAndrew Tridgell <tridge@samba.org>
Tue, 27 Sep 2005 07:11:33 +0000 (07:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:39:01 +0000 (13:39 -0500)
causing fort to get rather unhappy
(This used to be commit cc3e15e19cfde45fdfa63ca0a44dbbbefa723d6a)

source4/script/gdb_backtrace

index 72d1f75be994a6f51159a781defa6d9c8e9d12c6..bff70c389aa5c2e2f1c822dead21eb728ae0802a 100755 (executable)
@@ -1,5 +1,10 @@
 #!/bin/sh
 
+if [ -n "$VALGRIND" -o -n "$SMBD_VALGRIND" ]; then
+    echo "Not running gdb under valgrind"
+    exit 1
+fi
+
 # we want everything on stderr, so the program is not disturbed
 exec 1>&2