From db60ec6263a44dae741e54521ccd154ff8b76469 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 10 Jan 2002 08:15:58 +0000 Subject: * completer.c (command_completer): New function. * completer.h : Add prototype. * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the completer for the "help" command. --- gdb/completer.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gdb/completer.c') diff --git a/gdb/completer.c b/gdb/completer.c index f63fe02..a06eb65 100644 --- a/gdb/completer.c +++ b/gdb/completer.c @@ -339,6 +339,14 @@ location_completer (char *text, char *word) return list; } +/* Complete on command names. Used by "help". */ +char ** +command_completer (char *text, char *word) +{ + return complete_on_cmdlist (cmdlist, text, word); +} + + /* Here are some useful test cases for completion. FIXME: These should be put in the test suite. They should be tested with both M-? and TAB. -- cgit v1.1