From: Zachary T Welch Date: Thu, 3 Dec 2009 13:23:16 +0000 (-0800) Subject: fix double 'init' regression X-Git-Tag: v0.4.0-rc1~144 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=de27ebfa837a13309a03bfa0674513deed0d59e9;p=openocd 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. --- 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 "