diff options
Diffstat (limited to 'session_utils/debug')
-rwxr-xr-x | session_utils/debug | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/session_utils/debug b/session_utils/debug new file mode 100755 index 0000000000..6182ef28fd --- /dev/null +++ b/session_utils/debug @@ -0,0 +1,14 @@ +#!/bin/sh +TOP=`dirname "$0"`/.. +. "$TOP/build/gtk2_ardour/ardev_common_waf.sh" +SELF=$1 +shift + +export ARDOUR_INSIDE_GDB=1 + +if test -n "`which gdb`"; then + exec gdb --args "$TOP/build/session_utils/$SELF" "$@" +fi +if test -n "`which lldb`"; then + exec lldb -- "$TOP/build/session_utils/$SELF" "$@" +fi |