diff options
author | Eli Zaretskii <eliz@gnu.org> | 2002-01-10 08:15:58 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2002-01-10 08:15:58 +0000 |
commit | db60ec6263a44dae741e54521ccd154ff8b76469 (patch) | |
tree | 481bf1ae55ca721d52cafb68f749967c35fb11e6 /gdb/cli | |
parent | 39c22d1ade25baa5c9afaac499038ddc76a3dd60 (diff) | |
download | gdb-db60ec6263a44dae741e54521ccd154ff8b76469.zip gdb-db60ec6263a44dae741e54521ccd154ff8b76469.tar.gz gdb-db60ec6263a44dae741e54521ccd154ff8b76469.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-cmds.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 3cf9519..3e3aec4 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -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); |