X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Ftarget%2Ftrace.c;h=c3897a074df3e2bc6f11e2c95202eef81d7d592c;hb=833e7f5248778bcb31b4db1a1b91160995415203;hp=c038a1521a558fb6c66a01e052a80b754efecc86;hpb=f7e1f2df74b599903a6fb2d2ace94c3f1ef06097;p=fw%2Fopenocd diff --git a/src/target/trace.c b/src/target/trace.c index c038a1521..c3897a074 100644 --- a/src/target/trace.c +++ b/src/target/trace.c @@ -159,12 +159,12 @@ COMMAND_HANDLER(handle_trace_history_command) int trace_register_commands(struct command_context *cmd_ctx) { struct command *trace_cmd = - register_command(cmd_ctx, NULL, "trace", NULL, COMMAND_ANY, "trace commands"); + COMMAND_REGISTER(cmd_ctx, NULL, "trace", NULL, COMMAND_ANY, "trace commands"); - register_command(cmd_ctx, trace_cmd, "history", handle_trace_history_command, + COMMAND_REGISTER(cmd_ctx, trace_cmd, "history", handle_trace_history_command, COMMAND_EXEC, "display trace history, ['clear'] history or set [size]"); - register_command(cmd_ctx, trace_cmd, "point", handle_trace_point_command, + COMMAND_REGISTER(cmd_ctx, trace_cmd, "point", handle_trace_point_command, COMMAND_EXEC, "display trace points, ['clear'] list of trace points, or add new tracepoint at [address]"); return ERROR_OK;