* completer.c (command_completer): New function.
* completer.h <command_completer>: Add prototype. * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the completer for the "help" command.
This commit is contained in:
parent
39c22d1ade
commit
db60ec6263
4 changed files with 21 additions and 1 deletions
|
@ -668,7 +668,8 @@ when gdb is started.", &cmdlist);
|
|||
c->completer = filename_completer;
|
||||
|
||||
add_com ("quit", class_support, quit_command, "Exit gdb.");
|
||||
add_com ("help", class_support, help_command, "Print list of commands.");
|
||||
c = add_com ("help", class_support, help_command, "Print list of commands.");
|
||||
c->completer = command_completer;
|
||||
add_com_alias ("q", "quit", class_support, 1);
|
||||
add_com_alias ("h", "help", class_support, 1);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue