From: Ralph Ronnquist Date: Sun, 30 May 2021 04:34:54 +0000 (+1000) Subject: bug fix X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=a601d88f456cab4b87923c60cefefae9dcc6cb36;p=rrq%2Frrqforth.git bug fix --- 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