Allow "tcl_port" to be run after config to simply display the port.
[fw/openocd] / src / server / tcl_server.c
index 91f9778636eaab4f99abedb126bac403f0e576bc..b62f1a37e2c99e584e61020f9a13dd0d53fc9206 100644 (file)
@@ -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'.",