kodev: use LLDB for debugging on macOS (#14072)
Some checks failed
macos / macOS 13 x86-64 🔨15.2 🎯10.15 (push) Has been cancelled
macos / macOS 14 ARM64 🔨15.4 🎯11.0 (push) Has been cancelled

This commit is contained in:
Benoit Pierre
2025-07-20 16:09:24 +02:00
committed by GitHub
parent fd63e03b30
commit ac03e9cf06

18
kodev
View File

@@ -475,12 +475,18 @@ ANDROID TARGET:
if [[ -n "${VALUE}" ]]; then
declare -a "wrap=(${VALUE})"
else
# Try to use friendly defaults for GDB:
# - DDD is a slightly less nice GUI
# - cgdb is a nice curses-based GDB front
# - GDB standard CLI has a fallback
if ! wrap=("$(command -v ddd cgdb gdb | head -n1)"); then
die 1 "Couldn't find GDB."
if is_system macOS; then
if ! wrap=("$(command -v lldb | head -n1)"); then
die 1 "Couldn't find LLDB."
fi
else
# Try to use friendly defaults for GDB:
# - DDD is a slightly less nice GUI
# - cgdb is a nice curses-based GDB front
# - GDB standard CLI has a fallback
if ! wrap=("$(command -v ddd cgdb gdb | head -n1)"); then
die 1 "Couldn't find GDB."
fi
fi
fi
if [[ ${#wrap[@]} -eq 1 ]]; then