summaryrefslogtreecommitdiff
path: root/source4/script
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-09-27 07:11:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:39:01 -0500
commit190683f3e8fd04c12b2a930b51393dbef546773d (patch)
tree1645cbcbe7ca39b171bf88edcae8f7fbec70d080 /source4/script
parent255808b665b9f121343c8dd865f8909504cfcfcb (diff)
downloadsamba-190683f3e8fd04c12b2a930b51393dbef546773d.tar.gz
samba-190683f3e8fd04c12b2a930b51393dbef546773d.tar.bz2
samba-190683f3e8fd04c12b2a930b51393dbef546773d.zip
r10527: don't attempt self gdb attach if running under valgrind. This was
causing fort to get rather unhappy (This used to be commit cc3e15e19cfde45fdfa63ca0a44dbbbefa723d6a)
Diffstat (limited to 'source4/script')
-rwxr-xr-xsource4/script/gdb_backtrace5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/script/gdb_backtrace b/source4/script/gdb_backtrace
index 72d1f75be9..bff70c389a 100755
--- a/source4/script/gdb_backtrace
+++ b/source4/script/gdb_backtrace
@@ -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