diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-12-03 05:23:16 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-12-03 05:28:51 -0800 |
commit | de27ebfa837a13309a03bfa0674513deed0d59e9 (patch) | |
tree | 78ecb734a535447fe268087edb9b15bff39bbc48 /src | |
parent | 23f07d08e3998642326aa115cdd4cb1199f2704b (diff) | |
download | openocd+libswd-de27ebfa837a13309a03bfa0674513deed0d59e9.tar.gz openocd+libswd-de27ebfa837a13309a03bfa0674513deed0d59e9.tar.bz2 openocd+libswd-de27ebfa837a13309a03bfa0674513deed0d59e9.tar.xz openocd+libswd-de27ebfa837a13309a03bfa0674513deed0d59e9.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/openocd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 " |