mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
15
kodev
15
kodev
@@ -475,18 +475,17 @@ ANDROID TARGET:
|
||||
if [[ -n "${VALUE}" ]]; then
|
||||
declare -a "wrap=(${VALUE})"
|
||||
else
|
||||
if is_system macOS; then
|
||||
if ! wrap=("$(command -v lldb | head -n1)"); then
|
||||
die 1 "Couldn't find LLDB."
|
||||
fi
|
||||
else
|
||||
local -a candidates
|
||||
case "${OSTYPE}" in
|
||||
darwin*) candidates=(lldb) ;;
|
||||
# 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
|
||||
*) candidates=(ddd cgdb gdb) ;;
|
||||
esac
|
||||
if ! wrap=("$(command -v "${candidates[@]}" | head -n1)"); then
|
||||
die 1 "Couldn't find a supported debugger (${candidates[*]})."
|
||||
fi
|
||||
fi
|
||||
if [[ ${#wrap[@]} -eq 1 ]]; then
|
||||
|
||||
Reference in New Issue
Block a user