aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2002-01-10 08:15:58 +0000
committerEli Zaretskii <eliz@gnu.org>2002-01-10 08:15:58 +0000
commitdb60ec6263a44dae741e54521ccd154ff8b76469 (patch)
tree481bf1ae55ca721d52cafb68f749967c35fb11e6 /gdb/cli
parent39c22d1ade25baa5c9afaac499038ddc76a3dd60 (diff)
downloadgdb-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.c3
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);