Browse Source

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.
tags/v0.4.0-rc1
Zachary T Welch 14 years ago
parent
commit
de27ebfa83
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/openocd.c

+ 1
- 1
src/openocd.c 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 "


Loading…
Cancel
Save