From de27ebfa837a13309a03bfa0674513deed0d59e9 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Thu, 3 Dec 2009 05:23:16 -0800 Subject: [PATCH] fix double 'init' regression To prevent regression in the behavior of 'init', we allow it to run in any mode. If provided with -c init and with -c noinit, then the second init at startup caused a spurious mode failure. Let 'init' handle it. --- src/openocd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openocd.c b/src/openocd.c index 793aa6ae..03a57dcd 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -171,7 +171,7 @@ static const struct command_registration openocd_command_handlers[] = { { .name = "init", .handler = &handle_init_command, - .mode = COMMAND_CONFIG, + .mode = COMMAND_ANY, .help = "Initializes configured targets and servers. " "Changes command mode from CONFIG to EXEC. " "Unless 'noinit' is called, this command is " -- 2.39.5