From: Robert P. J. Day Date: Wed, 8 Jan 2014 16:43:25 +0000 (-0500) Subject: Allow "tcl_port" to be run after config to simply display the port. X-Git-Tag: v0.8.0-rc1~139 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=436f66b46327296ce818c3265f09381b2b0af7a7;p=openocd Allow "tcl_port" to be run after config to simply display the port. To be consistent with gdb_port and telnet_port, allow tcl_port to be run to display the configured port number, while still not allowing the user to change it after configuration. Change-Id: Ibe6aedb3bd447f2985e42dd8246358481a047dd6 Signed-off-by: Robert P. J. Day Reviewed-on: http://openocd.zylin.com/1857 Tested-by: jenkins Reviewed-by: Spencer Oliver --- diff --git a/src/server/tcl_server.c b/src/server/tcl_server.c index 91f97786..b62f1a37 100644 --- a/src/server/tcl_server.c +++ b/src/server/tcl_server.c @@ -176,7 +176,7 @@ static const struct command_registration tcl_command_handlers[] = { { .name = "tcl_port", .handler = handle_tcl_port_command, - .mode = COMMAND_CONFIG, + .mode = COMMAND_ANY, .help = "Specify port on which to listen " "for incoming Tcl syntax. " "Read help on 'gdb_port'.",