--- /dev/null
+#!/bin/bash
+
+PFX='0x[0-9a-f]* rrqforth.asm:[0-9]*[ ]*'
+
+grep "${PFX}do" rrqforth.map | sed 's/ .*//;s/^/break */' > gdbinit
+
+NBR=$(wc -l < gdbinit)
+
+DS="$(grep "${PFX}DS_TOP:" rrqforth.map | sed 's/ .*//')"
+
+cat <<EOF >> gdbinit
+display *(void**)\$rsp@(((void*)$DS-\$rsp)/8)+1
+display (char*)(*(void**)(\$rax-16)+32)
+display (void*)\$rax
+display (void*)\$rsi
+
+define si
+ stepi
+ x/3i \$pc
+ python gdb.execute("shell ./grepline.sh " + str(gdb.parse_and_eval("\$pc")))
+EOF
+
+exec gdb -x gdbinit rrqforth