From d411dd9601916e76cdbc244332c9b59585d26fb7 Mon Sep 17 00:00:00 2001 From: James Knight Date: Thu, 28 Apr 2022 16:46:36 +0100 Subject: [PATCH] I needed this so finally hooked up lldb to genn-buildmodel -d --- bin/genn-buildmodel.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/genn-buildmodel.sh b/bin/genn-buildmodel.sh index a8d75edf68..511e49430e 100755 --- a/bin/genn-buildmodel.sh +++ b/bin/genn-buildmodel.sh @@ -95,7 +95,11 @@ BASEDIR=$(dirname "$0") make -j $CORE_COUNT -C $BASEDIR/../src/genn/generator -f $GENERATOR_MAKEFILE $MACROS if [[ -n "$DEBUG" ]]; then - gdb -tui --args "$GENERATOR" "$BASEDIR/../" "$OUT_PATH" "$FORCE_REBUILD" + if [[ $(uname) == "Darwin" ]]; then + lldb -f "$GENERATOR" "$BASEDIR/../" "$OUT_PATH" "$FORCE_REBUILD" + else + gdb -tui --args "$GENERATOR" "$BASEDIR/../" "$OUT_PATH" "$FORCE_REBUILD" + fi else "$GENERATOR" "$BASEDIR/../" "$OUT_PATH" "$FORCE_REBUILD" fi