return ERROR_COMMAND_SYNTAX_ERROR;
if (!CMD_ARGC) {
- command_print(CMD_CTX, "%s", target->smp ? "on" : "off");
+ command_print(CMD, "%s", target->smp ? "on" : "off");
return ERROR_OK;
}
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);
target->gdb_service->core[1] = coreid;
}
- command_print(CMD_CTX, "gdb coreid %" PRId32 " -> %" PRId32, target->gdb_service->core[0]
+ command_print(CMD, "gdb coreid %" PRId32 " -> %" PRId32, target->gdb_service->core[0]
, target->gdb_service->core[1]);
}
return ERROR_OK;
.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,