tcl/esp32s2: check memory protection on gdb attach