start with disabled breakpoints
authorRalph Ronnquist <ralph.ronnquist@gmail.com>
Fri, 21 May 2021 11:50:07 +0000 (21:50 +1000)
committerRalph Ronnquist <ralph.ronnquist@gmail.com>
Fri, 21 May 2021 11:50:07 +0000 (21:50 +1000)
debug.sh

index 6ecb8ced20b2e1285003d35a38bf16a534db6800..5963b303995439741dd0ee558861382388e1e5b4 100755 (executable)
--- a/debug.sh
+++ b/debug.sh
@@ -3,8 +3,9 @@
 PFX='0x[0-9a-f]* rrqforth.asm:[0-9]*[ ]*'
 
 grep "${PFX}do" rrqforth.map | sed 's/ .*//;s/^/break */' > gdbinit
+NBR=( $(eval "echo {1..$(wc -l < gdbinit)}") )
 
-NBR=$(wc -l < gdbinit)
+for I in ${NBR[@]} ; do echo disable $I ; done >> gdbinit
 
 DS="$(grep "${PFX}DS_TOP:" rrqforth.map | sed 's/ .*//')"