Introduce class completion_tracker & rewrite completion<->readline interaction
[external/binutils.git] / gdb / top.c
index 17261cc..4c53efd 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -2023,7 +2023,7 @@ init_main (void)
 
   /* Setup important stuff for command line editing.  */
   rl_completion_word_break_hook = gdb_completion_word_break_characters;
-  rl_completion_entry_function = readline_line_completion_function;
+  rl_attempted_completion_function = gdb_rl_attempted_completion_function;
   set_rl_completer_word_break_characters (default_word_break_characters ());
   rl_completer_quote_characters = get_gdb_completer_quote_characters ();
   rl_completion_display_matches_hook = cli_display_match_list;