the endless quest to plug memory leaks -- episode 379
[ardour.git] / session_utils / debug
1 #!/bin/sh
2 TOP=`dirname "$0"`/..
3 . "$TOP/build/gtk2_ardour/ardev_common_waf.sh"
4 SELF=$1
5 shift
6
7 export ARDOUR_INSIDE_GDB=1
8
9 if test -n "`which gdb`"; then
10         exec gdb --args "$TOP/build/session_utils/$SELF" "$@"
11 fi
12 if test -n "`which lldb`"; then
13         exec lldb -- "$TOP/build/session_utils/$SELF" "$@"
14 fi