mirror of
https://github.com/linux-msm/openocd.git
synced 2026-02-25 13:15:07 -08:00
target misc: help/usage updates
Provide helptext which was sometimes missing; update some of it to be more accurate. Usage syntax messages have the same EBNF as the User's Guide. Don't use "&function"; functions are like arrays, their address is their name. Shrink some overlong lines; remove some empties. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -303,10 +303,10 @@ COMMAND_HANDLER(handle_target_request_debugmsgs_command)
|
||||
static const struct command_registration target_req_exec_command_handlers[] = {
|
||||
{
|
||||
.name = "debugmsgs",
|
||||
.handler = &handle_target_request_debugmsgs_command,
|
||||
.handler = handle_target_request_debugmsgs_command,
|
||||
.mode = COMMAND_EXEC,
|
||||
.help = "set reception of debug messages from target",
|
||||
.usage = "(enable|disable)",
|
||||
.help = "display and/or modify reception of debug messages from target",
|
||||
.usage = "['enable'|'charmsg'|'disable']",
|
||||
},
|
||||
COMMAND_REGISTRATION_DONE
|
||||
};
|
||||
|
||||
@@ -159,18 +159,18 @@ COMMAND_HANDLER(handle_trace_history_command)
|
||||
static const struct command_registration trace_exec_command_handlers[] = {
|
||||
{
|
||||
.name = "history",
|
||||
.handler = &handle_trace_history_command,
|
||||
.handler = handle_trace_history_command,
|
||||
.mode = COMMAND_EXEC,
|
||||
.help = "display trace history, clear history or set [size]",
|
||||
.usage = "[clear|<size>]",
|
||||
.help = "display trace history, clear history or set size",
|
||||
.usage = "['clear'|size]",
|
||||
},
|
||||
{
|
||||
.name = "point",
|
||||
.handler = &handle_trace_point_command,
|
||||
.handler = handle_trace_point_command,
|
||||
.mode = COMMAND_EXEC,
|
||||
.help = "display trace points, clear list of trace points, "
|
||||
"or add new tracepoint at [address]",
|
||||
.usage = "[clear|<address>]",
|
||||
"or add new tracepoint at address",
|
||||
.usage = "['clear'|address]",
|
||||
},
|
||||
COMMAND_REGISTRATION_DONE
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user