1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 10:52:44 +01:00

tools/openocd-rtt: also open GDB port

When using OpenOCD RTT (real-time transfer) for stdio with
`USEMODULE=stdio_rtt make ...`, it is no longer possible to debug
while being connected to stdio. By also opening gdb at RIOT's default
GDB port, `make debug-client` can be used to connect from GDB to the
OpenOCD instance providing stdio via RTT.
This commit is contained in:
Marian Buschsieweke 2024-01-13 12:47:37 +01:00
parent ca1c09e382
commit 4fc7700a0f
No known key found for this signature in database
GPG Key ID: 77AA882EC78084E6

View File

@ -484,7 +484,7 @@ do_term() {
-c 'bindto ${OPENOCD_SERVER_ADDRESS}' \
-c 'tcl_port 0' \
-c 'telnet_port 0' \
-c 'gdb_port 0' \
-c 'gdb_port 3333' \
-c init \
-c 'rtt setup '${RAM_START_ADDR}' '${RAM_LEN}' \"SEGGER RTT\"' \
-c 'rtt start' \