boards: esp32: add note on using GDB stub

This adds note to the board documentation about using GDB stub
on the esp32 board.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2021-11-03 13:47:52 -07:00 committed by Anas Nashif
commit 5040f94dd6

View file

@ -243,6 +243,17 @@ FSF mainline get inexplicable protocol errors when connecting.
Further documentation can be obtained from the SoC vendor in `JTAG debugging
for ESP32`_.
Note on Debugging with GDB Stub
===============================
GDB stub is enabled on ESP32.
* When adding breakpoints, please use hardware breakpoints with command
``hbreak``. Command ``break`` uses software breakpoints which requires
modifying memory content to insert break/trap instructions.
This does not work as the code is on flash which cannot be randomly
accessed for modification.
References
**********