aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2017-11-08 14:22:34 +0000
committerPedro Alves <palves@redhat.com>2017-11-08 16:05:45 +0000
commit1b0261195e3f11932c0f5657a74028f5814168eb (patch)
treebc7f8016d11d0cf03ba1139f5bc313731ef07743 /gdb/symtab.h
parentc62446b12b32ce57d2b40cdb0c1baa7fc1677d82 (diff)
downloadgdb-1b0261195e3f11932c0f5657a74028f5814168eb.zip
gdb-1b0261195e3f11932c0f5657a74028f5814168eb.tar.gz
gdb-1b0261195e3f11932c0f5657a74028f5814168eb.tar.bz2
Simplify completion_list_add_name | remove sym_text / sym_text_len
sym_text_len existed to strip parameters out of the lookup name. Now that that's handled by the lookup_name_info objects, the sym_text/sym_text_len parameters are no longer necessary. gdb/ChangeLog: 2017-11-08 Pedro Alves <palves@redhat.com> * ada-lang.c (ada_make_symbol_completion_list): Remove text and text_len locals and don't pass them down. * symtab.c (completion_list_add_name): Remove sym_text/sym_text_len parameters and adjust. (completion_list_add_symbol, completion_list_add_msymbol) (completion_list_objc_symbol, completion_list_add_fields) (add_symtab_completions): Likewise. (default_collect_symbol_completion_matches_break_on) (collect_file_symbol_completion_matches): Remove sym_text_len local and don't pass it down. * symtab.h (completion_list_add_name): Remove sym_text/sym_text_len parameters.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index 8cd3496..868c435 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -2004,7 +2004,6 @@ void completion_list_add_name (completion_tracker &tracker,
language symbol_language,
const char *symname,
const lookup_name_info &lookup_name,
- const char *sym_text, int sym_text_len,
const char *text, const char *word);
#endif /* !defined(SYMTAB_H) */