chirping78 opened a new pull request, #16095: URL: https://github.com/apache/nuttx/pull/16095
## Summary As follow up to #15907, add gdbstub support to xtensa arch. ## Impact No impact to users, only enhanced the development tools. ## Testing Please note that two USB-to-UART converters are used here. One is the **on-board** USB-to-UART, which is used for program the flash, and nsh access; another is an **external** USB-to-UART converter, connected to GPIO17/GPIO18, or U1TXD/U1RXD. - build and flash ``` ./tools/configure.sh -E esp32s3-devkit:gdbstub make -j flash ESPTOOL_PORT=/dev/ttyUSB0 ``` - nsh access as normal ``` minicom -D /dev/ttyUSB0 -b 115200 ``` - launch gdb to debug ``` xtensa-esp32s3-elf-gdb nuttx (gdb) target remote /dev/ttyUSB1 (gdb) b cmd_ls (gdb) c ``` Now you can run `ls` command in the nsh to trigger the breakpoint, and test these gdb functions 1. Stopping and Continuing: b c n s ni si finish 2. Examining the Stack: bt info frame info locals 3. Examining Code: disass 4. Examining Data: p x info reg -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org