Put the sidechain ports into a dedicated tab in PortMatrix
[ardour.git] / gtk2_ardour / ardbg
index cac20f3c2f89bf052c6f2b6ac5c5adb18ac746a7..abec22e22fcb7d0591067d257cf91f32ba45df5b 100755 (executable)
@@ -1,4 +1,13 @@
-#!/bin/sh -x
-dir=`dirname "$0"`
-source $dir/ardev_common.sh
-exec gdb $dir/ardour.bin $*
+#!/bin/sh
+TOP=`dirname "$0"`/..
+. $TOP/build/gtk2_ardour/ardev_common_waf.sh
+LD_LIBRARY_PATH=$LD_LIBRARY_PATH
+export ARDOUR_INSIDE_GDB=1
+
+if test -n "`which gdb`"; then
+       exec gdb --args $TOP/$EXECUTABLE $@
+fi
+if test -n "`which lldb`"; then
+       exec lldb -- $TOP/$EXECUTABLE $@
+fi
+echo "neither gdb nor lldb was found."