Use lldb on macOS.
authorCarl Hetherington <cth@carlh.net>
Sun, 4 Feb 2024 11:24:57 +0000 (12:24 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 4 Feb 2024 11:24:57 +0000 (12:24 +0100)
run/dcpomatic

index 730b89d5501dd3cd3b5ba181bc996a4f8135482e..45f857ae2a9b695f0e6501c09baf2f46a676597e 100755 (executable)
@@ -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 $*