Update GPL boilerplate and (C)
[ardour.git] / headless / hardbg
index ffab6221b08ce86288e202ecc6231817f42de39d..816c8be1856e2bdb0e544e74ea5a23c566a17e2d 100755 (executable)
@@ -1,5 +1,12 @@
 #!/bin/sh
-. `dirname "$0"`/../build/headless/hardev_common_waf.sh
+TOP=`dirname "$0"`/..
+. $TOP/build/gtk2_ardour/ardev_common_waf.sh
 LD_LIBRARY_PATH=$LD_LIBRARY_PATH
 export ARDOUR_INSIDE_GDB=1
-exec gdb --args $TOP/$EXECUTABLE $@
+if test -n "`which gdb`"; then
+       exec gdb --args $TOP/build/headless/hardour-$ARDOURVERSION "$@"
+fi
+if test -n "`which lldb`"; then
+       exec lldb -- $TOP/build/headless/hardour-$ARDOURVERSION "$@"
+fi
+echo "neither gdb nor lldb was found."