corrected STR>TEMP space allocation
[rrq/rrqforth.git] / debug.sh
index a665e0249c6b5692df2eae70ded05b5d2dc1b243..9b64b4970021df19eeedde13b0ca9530669bb21b 100755 (executable)
--- 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