riscv-openocd/src/rtt
Antonio Borneo 0332da1f15 rtt: rewrite command 'rtt channellist' as COMMAND_HANDLER
This also fixes a mistake of the jim command returning ERROR_xx
when function rtt_read_channel_info() returns error.
While there:
- format in a human readable way the output dictionary list, while
  preserving the structure of its TCL data;
- add check for the number of parameters.

Change-Id: Ica2b623699d3a606d3992975c836dae96f74b26d
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7489
Tested-by: jenkins
2023-03-25 18:11:14 +00:00
..
Makefile.am openocd: build: add SPDX tag 2022-07-23 13:06:38 +00:00
rtt.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
rtt.h openocd: src: replace the GPL-2.0-or-later license tag 2022-07-23 13:59:13 +00:00
tcl.c rtt: rewrite command 'rtt channellist' as COMMAND_HANDLER 2023-03-25 18:11:14 +00:00