diff options
author | Joel Brobecker <brobecker@gnat.com> | 2008-02-05 22:17:41 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2008-02-05 22:17:41 +0000 |
commit | bd23d891620a962232bdf02d18e3de078f06d954 (patch) | |
tree | 3c0865387f032fef6d65cf5ca8783f138f3f11ac /gdb/language.h | |
parent | ad2a3a21b1bd5de3f8bd81074302316481220045 (diff) | |
download | gdb-bd23d891620a962232bdf02d18e3de078f06d954.tar.gz |
* language.h (struct language_defn): Add new field
la_make_symbol_completion_list.
* symtab.c (default_make_symbol_completion_list): Renames
make_symbol_completion_list.
(make_symbol_completion_list): New function.
* symtab.h (default_make_symbol_completion_list): Add declaration.
* langauge.c (unknown_language): Set la_make_symbol_completion_list.
(auto_language, local_language): Likewise.
* objc-lang.c (objc_language_defn): Likewise.
* scm-lang.c (scm_language_defn): Likewise.
* m2-lang.c (m2_language_defn): Likewise.
* f-lang.c (f_language_defn): Likewise.
* jv-lang.c (java_language_defn): Likewise.
* p-lang.c (pascal_language_defn): Likewise.
* c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
(minimal_language_defn): Likewise.
* ada-lang.c (struct string_vector): New structure.
(new_string_vector, string_vector_append, ada_unqualified_name)
(add_angle_brackets, symbol_completion_match, symbol_completion_add)
(ada_make_symbol_completion_list): New functions.
(ada_language_defn): Set la_make_symbol_completion_list.
* ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
this function is static.
Diffstat (limited to 'gdb/language.h')
-rw-r--r-- | gdb/language.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/language.h b/gdb/language.h index 1639d4cf662..f7e654d2294 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -249,6 +249,11 @@ struct language_defn /* The list of characters forming word boundaries. */ char *(*la_word_break_characters) (void); + /* Should return a NULL terminated array of all symbols which + are possible completions for TEXT. WORD is the entire command + on which the completion is being made. */ + char **(*la_make_symbol_completion_list) (char *text, char *word); + /* The per-architecture (OS/ABI) language information. */ void (*la_language_arch_info) (struct gdbarch *, struct language_arch_info *); |