mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 11:59:27 +08:00
Fix comments and whitespace in lookup_cmd_composition
2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be> * cli/cli-decode.c (lookup_cmd_composition): Fix comments and whitespace.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
|
||||
|
||||
* cli/cli-decode.c (lookup_cmd_composition): Fix comments
|
||||
and whitespace.
|
||||
|
||||
2020-04-25 Kamil Rytarowski <n54@gmx.com>
|
||||
|
||||
* inf-ptrace.c (inf_ptrace_target::wait): Remove
|
||||
|
@ -1812,17 +1812,17 @@ deprecated_cmd_warning (const char *text)
|
||||
}
|
||||
|
||||
|
||||
/* Look up the contents of LINE as a command in the command list 'cmdlist'.
|
||||
/* Look up the contents of TEXT as a command in the command list 'cmdlist'.
|
||||
Return 1 on success, 0 on failure.
|
||||
|
||||
If LINE refers to an alias, *alias will point to that alias.
|
||||
If TEXT refers to an alias, *ALIAS will point to that alias.
|
||||
|
||||
If LINE is a postfix command (i.e. one that is preceded by a prefix
|
||||
command) set *prefix_cmd.
|
||||
If TEXT is a subcommand (i.e. one that is preceded by a prefix
|
||||
command) set *PREFIX_CMD.
|
||||
|
||||
Set *cmd to point to the command LINE indicates.
|
||||
Set *CMD to point to the command TEXT indicates.
|
||||
|
||||
If any of *alias, *prefix_cmd, or *cmd cannot be determined or do not
|
||||
If any of *ALIAS, *PREFIX_CMD, or *CMD cannot be determined or do not
|
||||
exist, they are NULL when we return.
|
||||
|
||||
*/
|
||||
@ -1860,7 +1860,7 @@ lookup_cmd_composition (const char *text,
|
||||
if (len == 0)
|
||||
return 0;
|
||||
|
||||
/* Text is the start of the first command word to lookup (and
|
||||
/* TEXT is the start of the first command word to lookup (and
|
||||
it's length is len). We copy this into a local temporary. */
|
||||
|
||||
command = (char *) alloca (len + 1);
|
||||
@ -1884,7 +1884,7 @@ lookup_cmd_composition (const char *text,
|
||||
if ((*cmd)->cmd_pointer)
|
||||
{
|
||||
/* cmd was actually an alias, we note that an alias was
|
||||
used (by assigning *alais) and we set *cmd. */
|
||||
used (by assigning *ALIAS) and we set *CMD. */
|
||||
*alias = *cmd;
|
||||
*cmd = (*cmd)->cmd_pointer;
|
||||
}
|
||||
|
Reference in New Issue
Block a user