command mode: return "any" for tcl proc
commitcb83bc747ce1106c50d713f6d552da8c3e476e0f
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 9 May 2020 00:00:45 +0000 (9 02:00 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 18 Apr 2021 14:33:37 +0000 (18 15:33 +0100)
treed4f2891e1ca0a6a762676313e23c878dc907f189
parent41c95aa4ea1506a951dad0147f6cd4b8d7043358
command mode: return "any" for tcl proc

A tcl proc can be executed anytime, in any command mode.

Let the command "command mode" to detect a tcl proc and return the
string "any".

Change-Id: I0559076c3063632ee0ea9a57a25f91060209b77f
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5669
Tested-by: jenkins
Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
src/helper/command.c