X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=run%2Fdcpomatic;fp=run%2Fdcpomatic;h=45f857ae2a9b695f0e6501c09baf2f46a676597e;hp=730b89d5501dd3cd3b5ba181bc996a4f8135482e;hb=0194a1d4f3fe080c59d5150b78448af81a621fdf;hpb=3e276a20ddcf633fcde338a7ae648162bd3f2443 diff --git a/run/dcpomatic b/run/dcpomatic index 730b89d55..45f857ae2 100755 --- a/run/dcpomatic +++ b/run/dcpomatic @@ -16,7 +16,11 @@ export DYLD_LIBRARY_PATH=/Users/cah/osx-environment/$env/lib:/usr/local/lib if [ "$1" == "--debug" ]; then shift - gdb --args $binary $* + if [[ "$(uname)" == Darwin ]]; then + /Applications/Xcode.app/Contents/Developer/usr/bin/lldb $binary $* + else + gdb --args $binary $* + fi elif [ "$1" == "--valgrind" ]; then shift valgrind --tool="memcheck" --suppressions=suppressions --track-fds=yes --show-leak-kinds=all --leak-check=full $binary $*