kodev: use LLDB for debugging on macOS (#14072)
This commit is contained in:
1 parent
fd63e03b30
commit
ac03e9cf06
1 file changed
+12
-6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user