smp: move command deprecation to startup.tcl
Commit 246782229f ("smp: replace commands smp_on/smp_off with
"smp [on|off]"") deprecates some multi-word comments, when openocd
was unable to properly handle mixes of multi-word commands and tcl
procedures having a common initial word.
This limitation is over, so move in startup.tcl the multi-word
commands deprecation, making it easy to remove them after a grace
period.
Change-Id: Icb550d1fa7559b95692d2a1244880da6c90ec0b2
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5677
Tested-by: jenkins
This commit is contained in:
@@ -131,26 +131,6 @@ COMMAND_HANDLER(default_handle_smp_command)
|
||||
return ERROR_COMMAND_SYNTAX_ERROR;
|
||||
}
|
||||
|
||||
COMMAND_HANDLER(deprecated_handle_smp_on_command)
|
||||
{
|
||||
const char *argv[] = {"on", NULL};
|
||||
|
||||
LOG_WARNING("\'smp_on\' is deprecated, please use \'smp on\' instead.");
|
||||
CMD_ARGC = 1;
|
||||
CMD_ARGV = argv;
|
||||
return CALL_COMMAND_HANDLER(default_handle_smp_command);
|
||||
}
|
||||
|
||||
COMMAND_HANDLER(deprecated_handle_smp_off_command)
|
||||
{
|
||||
const char *argv[] = {"off", NULL};
|
||||
|
||||
LOG_WARNING("\'smp_off\' is deprecated, please use \'smp off\' instead.");
|
||||
CMD_ARGC = 1;
|
||||
CMD_ARGV = argv;
|
||||
return CALL_COMMAND_HANDLER(default_handle_smp_command);
|
||||
}
|
||||
|
||||
COMMAND_HANDLER(handle_smp_gdb_command)
|
||||
{
|
||||
struct target *target = get_current_target(CMD_CTX);
|
||||
@@ -180,20 +160,6 @@ const struct command_registration smp_command_handlers[] = {
|
||||
.help = "smp handling",
|
||||
.usage = "[on|off]",
|
||||
},
|
||||
{
|
||||
.name = "smp_on",
|
||||
.handler = deprecated_handle_smp_on_command,
|
||||
.mode = COMMAND_EXEC,
|
||||
.help = "Restart smp handling",
|
||||
.usage = "",
|
||||
},
|
||||
{
|
||||
.name = "smp_off",
|
||||
.handler = deprecated_handle_smp_off_command,
|
||||
.mode = COMMAND_EXEC,
|
||||
.help = "Stop smp handling",
|
||||
.usage = "",
|
||||
},
|
||||
{
|
||||
.name = "smp_gdb",
|
||||
.handler = handle_smp_gdb_command,
|
||||
|
||||
Reference in New Issue
Block a user