From a601d88f456cab4b87923c60cefefae9dcc6cb36 Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Sun, 30 May 2021 14:34:54 +1000 Subject: [PATCH] bug fix --- debug.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debug.sh b/debug.sh index b94d7da..fd6795b 100755 --- a/debug.sh +++ b/debug.sh @@ -10,8 +10,8 @@ NBR=$(wc -l < gdbinit) I=1 while [ $I -lt $NBR ] ; do echo disable $I ; I=$((I+1)) ; done >> gdbinit -RET=$(grep -w ret rrqforth.map | sed 's/ .*//') -echo "break *$RET" >> gdbinit +RET=( $(grep -w ret rrqforth.map | sed 's/ .*//') ) +echo "break *${RET[0]}" >> gdbinit # ;; rax = cfa of called word # ;; rsi = cell* of next forth word # ;; [$rsp] = from where the call was -- 2.39.2