forked from espressif/esp-idf
* reading the UART peripheral registers disturbs gdbstub because it communicates via UART. Hence, we protect it. Closes IDF-2533
* reading the UART peripheral registers disturbs gdbstub because it communicates via UART. Hence, we protect it. Closes IDF-2533