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.
This commit is contained in:
Zachary T Welch 2009-12-03 05:23:16 -08:00
parent 23f07d08e3
commit de27ebfa83
1 changed files with 1 additions and 1 deletions

View File

@ -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 "