GDB (xrefs)
|
#include "defs.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "expression.h"
#include "filenames.h"
#include "language.h"
#include "gdbsupport/gdb_signals.h"
#include "target.h"
#include "reggroups.h"
#include "user-regs.h"
#include "arch-utils.h"
#include "location.h"
#include <algorithm>
#include "linespec.h"
#include "cli/cli-decode.h"
#include "gdbcmd.h"
#include "readline/readline.h"
#include "completer.h"
Go to the source code of this file.
Classes | |
class | completion_tracker::completion_hash_entry |
struct | gdb_completer_state |
struct | gdb_rl_completion_word_info |
Macros | |
#define | INITIAL_COMPLETION_HTAB_SIZE 200 |
#define | ELLIPSIS_LEN 3 |
Typedefs | |
typedef int | QSFUNC(const void *, const void *) |
Enumerations | |
enum | explicit_location_match_type { MATCH_SOURCE , MATCH_FUNCTION , MATCH_QUALIFIED , MATCH_LINE , MATCH_LABEL } |
enum | complete_line_internal_reason { handle_brkchars , handle_completions , handle_help } |
enum | reg_completer_target { complete_register_names = 0x1 , complete_reggroup_names = 0x2 } |
Functions | |
const char * | get_gdb_completer_quote_characters (void) |
void | noop_completer (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *prefix) |
void | filename_completer (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *word) |
static void | filename_completer_handle_brkchars (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *word) |
static const char * | gdb_rl_find_completion_word (struct gdb_rl_completion_word_info *info, int *qc, int *dp, const char *line_buffer) |
static const char * | advance_to_completion_word (completion_tracker &tracker, const char *word_break_characters, const char *text) |
const char * | advance_to_expression_complete_word_point (completion_tracker &tracker, const char *text) |
const char * | advance_to_filename_complete_word_point (completion_tracker &tracker, const char *text) |
void | complete_nested_command_line (completion_tracker &tracker, const char *text) |
static void | complete_files_symbols (completion_tracker &tracker, const char *text, const char *word) |
completion_list | complete_source_filenames (const char *text) |
static void | complete_address_and_linespec_locations (completion_tracker &tracker, const char *text, symbol_name_match_type match_type) |
static const char * | string_or_empty (const char *string) |
static void | collect_explicit_location_matches (completion_tracker &tracker, location_spec *locspec, enum explicit_location_match_type what, const char *word, const struct language_defn *language) |
static int | skip_keyword (completion_tracker &tracker, const char *const *keywords, const char **text_p) |
static void | complete_explicit_location_spec (completion_tracker &tracker, location_spec *locspec, const char *text, const language_defn *language, const char *quoted_arg_start, const char *quoted_arg_end) |
void | location_completer (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *) |
static void | location_completer_handle_brkchars (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *word_ignored) |
void | complete_expression (completion_tracker &tracker, const char *text, const char *word) |
void | expression_completer (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *word) |
void | set_rl_completer_word_break_characters (const char *break_chars) |
void | symbol_completer (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *word) |
static void | complete_line_internal_normal_command (completion_tracker &tracker, const char *command, const char *word, const char *cmd_args, complete_line_internal_reason reason, struct cmd_list_element *c) |
static void | complete_line_internal_1 (completion_tracker &tracker, const char *text, const char *line_buffer, int point, complete_line_internal_reason reason) |
static void | complete_line_internal (completion_tracker &tracker, const char *text, const char *line_buffer, int point, complete_line_internal_reason reason) |
static char * | make_completion_match_str_1 (const char *match_name, const char *text, const char *word) |
gdb::unique_xmalloc_ptr< char > | make_completion_match_str (const char *match_name, const char *text, const char *word) |
gdb::unique_xmalloc_ptr< char > | make_completion_match_str (gdb::unique_xmalloc_ptr< char > &&match_name, const char *text, const char *word) |
completion_result | complete (const char *line, char const **word, int *quote_char) |
void | complete_line (completion_tracker &tracker, const char *text, const char *line_buffer, int point) |
void | command_completer (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *word) |
static void | command_completer_handle_brkchars (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *word) |
void | signal_completer (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *word) |
DEF_ENUM_FLAGS_TYPE (enum reg_completer_target, reg_completer_targets) | |
static void | reg_or_group_completer_1 (completion_tracker &tracker, const char *text, const char *word, reg_completer_targets targets) |
void | reg_or_group_completer (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *word) |
void | reggroup_completer (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *word) |
static void | default_completer_handle_brkchars (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *word) |
completer_handle_brkchars_ftype * | completer_handle_brkchars_func_for_completer (completer_ftype *fn) |
static char * | gdb_completion_word_break_characters_throw () |
char * | gdb_completion_word_break_characters () |
const char * | completion_find_completion_word (completion_tracker &tracker, const char *text, int *quote_char) |
static char * | expand_preserving_ws (const char *orig, size_t orig_len, const char *lcd) |
static char ** | gdb_rl_attempted_completion_function_throw (const char *text, int start, int end) |
char ** | gdb_rl_attempted_completion_function (const char *text, int start, int end) |
const char * | skip_quoted_chars (const char *str, const char *quotechars, const char *breakchars) |
const char * | skip_quoted (const char *str) |
const char * | get_max_completions_reached_message (void) |
static int | gdb_get_y_or_n (int for_pager, const struct match_list_displayer *displayer) |
static int | gdb_display_match_list_pager (int lines, const struct match_list_displayer *displayer) |
static int | gdb_path_isdir (const char *filename) |
static char * | gdb_printable_part (char *pathname) |
static int | gdb_fnwidth (const char *string) |
static int | gdb_fnprint (const char *to_print, int prefix_bytes, const struct match_list_displayer *displayer) |
static int | gdb_print_filename (char *to_print, char *full_pathname, int prefix_bytes, const struct match_list_displayer *displayer) |
static int | gdb_complete_get_screenwidth (const struct match_list_displayer *displayer) |
EXTERN_C int | _rl_qsort_string_compare (const void *, const void *) |
static int | gdb_display_match_list_1 (char **matches, int len, int max, const struct match_list_displayer *displayer) |
void | gdb_display_match_list (char **matches, int len, int max, const struct match_list_displayer *displayer) |
void | _initialize_completer () |
Variables | |
static gdb_completer_state | current_completion |
static const char | gdb_completer_command_word_break_characters [] |
static const char | gdb_completer_file_name_break_characters [] |
static const char | gdb_completer_quote_characters [] = "'" |
static const char *const | explicit_options [] |
static const char *const | probe_options [] |
int | max_completions = 200 |
static char | gdb_custom_word_point_brkchars [2] |
static const char * | gdb_org_rl_basic_quote_characters = rl_basic_quote_characters |
int | _rl_completion_prefix_display_length |
int | _rl_print_completions_horizontally |
#define ELLIPSIS_LEN 3 |
Definition at line 2442 of file completer.c.
Referenced by gdb_display_match_list_1(), and gdb_fnprint().
#define INITIAL_COMPLETION_HTAB_SIZE 200 |
Definition at line 1471 of file completer.c.
Referenced by completion_tracker::discard_completions().
typedef int QSFUNC(const void *, const void *) |
Definition at line 2816 of file completer.c.
Enumerator | |
---|---|
handle_brkchars | |
handle_completions | |
handle_help |
Definition at line 1142 of file completer.c.
Enumerator | |
---|---|
MATCH_SOURCE | |
MATCH_FUNCTION | |
MATCH_QUALIFIED | |
MATCH_LINE | |
MATCH_LABEL |
Definition at line 123 of file completer.c.
enum reg_completer_target |
Enumerator | |
---|---|
complete_register_names | |
complete_reggroup_names |
Definition at line 1784 of file completer.c.
void _initialize_completer | ( | ) |
Definition at line 2996 of file completer.c.
Referenced by initialize_all_files().
EXTERN_C int _rl_qsort_string_compare | ( | const void * | , |
const void * | ) |
Referenced by gdb_display_match_list_1().
|
static |
Definition at line 394 of file completer.c.
References completion_tracker::advance_custom_word_point_by(), gdb_completer_quote_characters, gdb_rl_find_completion_word(), completion_tracker::set_quote_char(), and completion_tracker::set_suppress_append_ws().
Referenced by advance_to_expression_complete_word_point(), and advance_to_filename_complete_word_point().
const char * advance_to_expression_complete_word_point | ( | completion_tracker & | tracker, |
const char * | text ) |
Definition at line 422 of file completer.c.
References advance_to_completion_word(), current_language, and language_defn::word_break_characters().
Referenced by backtrace_command_completer(), compile_code_command_completer(), complete_address_and_linespec_locations(), complete_linespec_component(), condition_completer(), display_and_x_command_completer(), info_module_var_func_command_completer(), info_print_command_completer(), info_types_command_completer(), info_vars_funcs_command_completer(), location_completer(), maint_info_sections_completer(), print_command_completer(), and watch_command_completer().
const char * advance_to_filename_complete_word_point | ( | completion_tracker & | tracker, |
const char * | text ) |
Definition at line 432 of file completer.c.
References advance_to_completion_word(), and gdb_completer_file_name_break_characters.
Referenced by compile_file_command_completer(), and maint_print_c_tdesc_cmd_completer().
|
static |
Definition at line 709 of file completer.c.
References completion_tracker::add_completions(), completion_tracker::advance_custom_word_point_by(), as_explicit_location_spec(), complete_on_enum(), completion_tracker::completes_to_completion_word(), completion_tracker::discard_completions(), explicit_options, explicit_location_spec::func_name_match_type, explicit_location_spec::function_name, completion_tracker::have_completions(), explicit_location_spec::label_name, linespec_complete_function(), linespec_complete_label(), linespec_keywords, make_source_files_completion_list(), MATCH_FUNCTION, MATCH_LABEL, MATCH_LINE, MATCH_QUALIFIED, MATCH_SOURCE, explicit_location_spec::source_filename, and string_or_empty().
Referenced by complete_explicit_location_spec().
void command_completer | ( | struct cmd_list_element * | ignore, |
completion_tracker & | tracker, | ||
const char * | text, | ||
const char * | word ) |
Definition at line 1734 of file completer.c.
References complete_line_internal(), and handle_help.
Referenced by completer_handle_brkchars_func_for_completer().
|
static |
Definition at line 1745 of file completer.c.
References gdb_completer_command_word_break_characters, and set_rl_completer_word_break_characters().
Referenced by completer_handle_brkchars_func_for_completer().
completion_result complete | ( | const char * | line, |
char const ** | word, | ||
int * | quote_char ) |
Definition at line 1670 of file completer.c.
References completion_tracker::build_completion_result(), complete_line(), completion_find_completion_word(), and completion_tracker::use_custom_word_point().
Referenced by complete_command(), handle_line_of_input(), and mi_cmd_complete().
|
static |
Definition at line 656 of file completer.c.
References completion_tracker::advance_custom_word_point_by(), advance_to_expression_complete_word_point(), complete_expression(), and linespec_complete().
Referenced by location_completer().
|
static |
Definition at line 856 of file completer.c.
References completion_tracker::add_completion(), completion_tracker::advance_custom_word_point_by(), collect_explicit_location_matches(), complete_on_enum(), explicit_options, linespec_keywords, and skip_keyword().
Referenced by location_completer().
void complete_expression | ( | completion_tracker & | tracker, |
const char * | text, | ||
const char * | word ) |
Definition at line 1061 of file completer.c.
References complete_files_symbols(), and parse_expression_for_completion().
Referenced by complete_address_and_linespec_locations(), complete_linespec_component(), expression_completer(), and location_completer().
|
static |
Definition at line 504 of file completer.c.
References completion_tracker::add_completions(), collect_file_symbol_completion_matches(), collect_symbol_completion_matches(), current_language, EXPRESSION, gdb_completer_file_name_break_characters, completion_tracker::have_completions(), make_source_files_completion_list(), language_defn::word_break_characters(), xfree(), and xmalloc().
Referenced by complete_expression().
void complete_line | ( | completion_tracker & | tracker, |
const char * | text, | ||
const char * | line_buffer, | ||
int | point ) |
Definition at line 1722 of file completer.c.
References complete_line_internal(), handle_completions, and max_completions.
Referenced by complete(), complete_nested_command_line(), and gdb_rl_attempted_completion_function_throw().
|
static |
Definition at line 1450 of file completer.c.
References complete_line_internal_1().
Referenced by command_completer(), complete_line(), completion_find_completion_word(), and gdb_completion_word_break_characters_throw().
|
static |
Definition at line 1233 of file completer.c.
References completion_tracker::advance_custom_word_point_by(), cmd_list_element::allow_unknown, CMD_LIST_AMBIGUOUS, cmdlist, complete_line_internal_normal_command(), complete_on_cmdlist(), complete_on_enum(), current_language, cmd_list_element::enums, gdb_completer_command_word_break_characters, handle_brkchars, handle_help, cmd_list_element::is_prefix(), lookup_cmd_1(), set_rl_completer_word_break_characters(), cmd_list_element::subcommands, valid_cmd_char_p(), and language_defn::word_break_characters().
Referenced by complete_line_internal().
|
static |
Definition at line 1178 of file completer.c.
References cmd_list_element::completer, cmd_list_element::completer_handle_brkchars, completer_handle_brkchars_func_for_completer(), filename_completer(), gdb_completer_file_name_break_characters, and handle_brkchars.
Referenced by complete_line_internal_1().
void complete_nested_command_line | ( | completion_tracker & | tracker, |
const char * | text ) |
Definition at line 464 of file completer.c.
References complete_line(), completion_find_completion_word(), completion_tracker::custom_word_point(), completion_tracker::set_custom_word_point(), completion_tracker::set_use_custom_word_point(), and completion_tracker::use_custom_word_point().
Referenced by alias_command_completer(), frame_apply_completer(), pipe_command_completer(), thread_apply_all_command_completer(), thread_apply_command_completer(), and with_command_completer_1().
completion_list complete_source_filenames | ( | const char * | text | ) |
Definition at line 639 of file completer.c.
References gdb_completer_file_name_break_characters, and make_source_files_completion_list().
Referenced by complete_linespec_component().
completer_handle_brkchars_ftype * completer_handle_brkchars_func_for_completer | ( | completer_ftype * | fn | ) |
Definition at line 1868 of file completer.c.
References command_completer(), command_completer_handle_brkchars(), default_completer_handle_brkchars(), filename_completer(), filename_completer_handle_brkchars(), location_completer(), and location_completer_handle_brkchars().
Referenced by cmdpy_completer_handle_brkchars(), and complete_line_internal_normal_command().
const char * completion_find_completion_word | ( | completion_tracker & | tracker, |
const char * | text, | ||
int * | quote_char ) |
Definition at line 1960 of file completer.c.
References complete_line_internal(), completion_tracker::custom_word_point(), gdb_completer_quote_characters, gdb_rl_find_completion_word(), handle_brkchars, gdbarch::info(), completion_tracker::quote_char(), completion_tracker::use_custom_word_point(), and gdb_rl_completion_word_info::word_break_characters.
Referenced by complete(), and complete_nested_command_line().
DEF_ENUM_FLAGS_TYPE | ( | enum | reg_completer_target, |
reg_completer_targets | ) |
|
static |
Definition at line 1857 of file completer.c.
References current_language, set_rl_completer_word_break_characters(), and language_defn::word_break_characters().
Referenced by completer_handle_brkchars_func_for_completer().
|
static |
Definition at line 2082 of file completer.c.
Referenced by completion_tracker::build_completion_result().
void expression_completer | ( | struct cmd_list_element * | ignore, |
completion_tracker & | tracker, | ||
const char * | text, | ||
const char * | word ) |
Definition at line 1092 of file completer.c.
References complete_expression().
Referenced by backtrace_command_completer(), condition_completer(), display_and_x_command_completer(), print_command_completer(), and watch_command_completer().
void filename_completer | ( | struct cmd_list_element * | ignore, |
completion_tracker & | tracker, | ||
const char * | text, | ||
const char * | word ) |
Definition at line 204 of file completer.c.
References completion_tracker::add_completion(), and make_completion_match_str().
Referenced by add_dump_command(), add_setshow_filename_cmd(), add_setshow_filename_cmd(), add_setshow_optional_filename_cmd(), add_setshow_optional_filename_cmd(), compile_file_command_completer(), complete_line_internal_normal_command(), completer_handle_brkchars_func_for_completer(), initialize_inferiors(), and maint_print_c_tdesc_cmd_completer().
|
static |
Definition at line 245 of file completer.c.
References gdb_completer_file_name_break_characters, and set_rl_completer_word_break_characters().
Referenced by completer_handle_brkchars_func_for_completer().
|
static |
Definition at line 2806 of file completer.c.
References match_list_displayer::width.
Referenced by gdb_display_match_list_1().
char * gdb_completion_word_break_characters | ( | void | ) |
Definition at line 1938 of file completer.c.
References gdb_completer_state::aborted, current_completion, and gdb_completion_word_break_characters_throw().
Referenced by init_main().
|
static |
Definition at line 1898 of file completer.c.
References complete_line_internal(), current_completion, completion_tracker::custom_word_point(), gdb_custom_word_point_brkchars, handle_brkchars, gdb_completer_state::tracker, and completion_tracker::use_custom_word_point().
Referenced by gdb_completion_word_break_characters().
void gdb_display_match_list | ( | char ** | matches, |
int | len, | ||
int | max, | ||
const struct match_list_displayer * | displayer ) |
Definition at line 2947 of file completer.c.
References match_list_displayer::crlf, match_list_displayer::flush, gdb_display_match_list_1(), gdb_get_y_or_n(), get_max_completions_reached_message(), max_completions, and match_list_displayer::puts.
Referenced by cli_display_match_list(), and tui_rl_display_match_list().
|
static |
Definition at line 2823 of file completer.c.
References _rl_completion_prefix_display_length, _rl_print_completions_horizontally, _rl_qsort_string_compare(), match_list_displayer::crlf, ELLIPSIS_LEN, gdb_complete_get_screenwidth(), gdb_display_match_list_pager(), gdb_fnwidth(), gdb_print_filename(), gdb_printable_part(), match_list_displayer::height, pagination_enabled, match_list_displayer::putch, and qsort.
Referenced by gdb_display_match_list().
|
static |
Definition at line 2491 of file completer.c.
References match_list_displayer::erase_entire_line, match_list_displayer::flush, gdb_get_y_or_n(), and match_list_displayer::puts.
Referenced by gdb_display_match_list_1().
|
static |
Definition at line 2619 of file completer.c.
References CTRL_CHAR, ELLIPSIS_LEN, and match_list_displayer::putch.
Referenced by gdb_print_filename().
|
static |
Definition at line 2565 of file completer.c.
References CTRL_CHAR.
Referenced by gdb_display_match_list_1().
|
static |
Definition at line 2451 of file completer.c.
References match_list_displayer::beep, match_list_displayer::erase_entire_line, and match_list_displayer::read_key.
Referenced by gdb_display_match_list(), and gdb_display_match_list_pager().
|
static |
Definition at line 2512 of file completer.c.
Referenced by gdb_print_filename().
|
static |
Definition at line 2713 of file completer.c.
References gdb_fnprint(), gdb_path_isdir(), match_list_displayer::putch, xfree(), and xmalloc().
Referenced by gdb_display_match_list_1().
|
static |
Definition at line 2531 of file completer.c.
Referenced by gdb_display_match_list_1().
char ** gdb_rl_attempted_completion_function | ( | const char * | text, |
int | start, | ||
int | end ) |
Definition at line 2329 of file completer.c.
References gdb_completer_state::aborted, current_completion, gdb_org_rl_basic_quote_characters, and gdb_rl_attempted_completion_function_throw().
Referenced by init_main().
|
static |
Definition at line 2298 of file completer.c.
References completion_tracker::build_completion_result(), complete_line(), completion_result::completion_suppress_append, current_completion, completion_result::release_match_list(), gdb_completer_state::tracker, and completion_tracker::use_custom_word_point().
Referenced by gdb_rl_attempted_completion_function().
|
static |
Definition at line 275 of file completer.c.
References scan().
Referenced by advance_to_completion_word(), and completion_find_completion_word().
const char * get_gdb_completer_quote_characters | ( | void | ) |
Definition at line 186 of file completer.c.
References gdb_completer_quote_characters.
Referenced by init_main().
const char * get_max_completions_reached_message | ( | void | ) |
Definition at line 2415 of file completer.c.
Referenced by complete_command(), and gdb_display_match_list().
void location_completer | ( | struct cmd_list_element * | ignore, |
completion_tracker & | tracker, | ||
const char * | text, | ||
const char * | ) |
Definition at line 927 of file completer.c.
References completion_tracker::advance_custom_word_point_by(), advance_to_expression_complete_word_point(), as_explicit_location_spec(), complete_address_and_linespec_locations(), complete_explicit_location_spec(), complete_expression(), complete_on_enum(), current_language, completion_tracker::custom_word_point(), explicit_options, explicit_location_spec::func_name_match_type, completion_tracker::have_completions(), explicit_completion_info::last_option, linespec_keywords, probe_options, explicit_completion_info::quoted_arg_end, explicit_completion_info::quoted_arg_start, explicit_completion_info::saw_explicit_location_spec_option, completion_tracker::set_custom_word_point(), completion_tracker::set_quote_char(), skip_keyword(), string_to_explicit_location_spec(), and WILD.
Referenced by completer_handle_brkchars_func_for_completer(), and location_completer_handle_brkchars().
|
static |
Definition at line 1048 of file completer.c.
References location_completer(), and completion_tracker::set_use_custom_word_point().
Referenced by completer_handle_brkchars_func_for_completer().
gdb::unique_xmalloc_ptr< char > make_completion_match_str | ( | const char * | match_name, |
const char * | text, | ||
const char * | word ) |
Definition at line 1646 of file completer.c.
References make_completion_match_str_1().
Referenced by add_filename_to_list(), complete_on_cmdlist(), complete_on_enum(), gdb::option::complete_on_options(), completion_list_add_name(), filename_completer(), interpreter_completer(), and completion_tracker::maybe_add_completion().
gdb::unique_xmalloc_ptr< char > make_completion_match_str | ( | gdb::unique_xmalloc_ptr< char > && | match_name, |
const char * | text, | ||
const char * | word ) |
Definition at line 1658 of file completer.c.
References make_completion_match_str_1().
|
static |
Definition at line 1615 of file completer.c.
References xmalloc().
Referenced by make_completion_match_str(), and make_completion_match_str().
void noop_completer | ( | struct cmd_list_element * | ignore, |
completion_tracker & | tracker, | ||
const char * | text, | ||
const char * | prefix ) |
Definition at line 195 of file completer.c.
void reg_or_group_completer | ( | struct cmd_list_element * | ignore, |
completion_tracker & | tracker, | ||
const char * | text, | ||
const char * | word ) |
Definition at line 1834 of file completer.c.
References complete_reggroup_names, complete_register_names, and reg_or_group_completer_1().
|
static |
Definition at line 1795 of file completer.c.
References completion_tracker::add_completion(), complete_reggroup_names, complete_register_names, gdbarch_reggroups(), get_current_arch(), name, and user_reg_map_regnum_to_name().
Referenced by reg_or_group_completer(), and reggroup_completer().
void reggroup_completer | ( | struct cmd_list_element * | ignore, |
completion_tracker & | tracker, | ||
const char * | text, | ||
const char * | word ) |
Definition at line 1846 of file completer.c.
References complete_reggroup_names, and reg_or_group_completer_1().
Referenced by tui_reggroup_completer().
void set_rl_completer_word_break_characters | ( | const char * | break_chars | ) |
Definition at line 1102 of file completer.c.
Referenced by command_completer_handle_brkchars(), complete_line_internal_1(), default_completer_handle_brkchars(), filename_completer_handle_brkchars(), and init_main().
void signal_completer | ( | struct cmd_list_element * | ignore, |
completion_tracker & | tracker, | ||
const char * | text, | ||
const char * | word ) |
Definition at line 1756 of file completer.c.
References completion_tracker::add_completion().
Referenced by handle_completer().
|
static |
Definition at line 816 of file completer.c.
References completion_tracker::advance_custom_word_point_by().
Referenced by complete_explicit_location_spec(), and location_completer().
const char * skip_quoted | ( | const char * | str | ) |
const char * skip_quoted_chars | ( | const char * | str, |
const char * | quotechars, | ||
const char * | breakchars ) |
Definition at line 2363 of file completer.c.
References current_language, gdb_completer_quote_characters, scan(), and language_defn::word_break_characters().
Referenced by skip_quoted().
|
static |
Definition at line 700 of file completer.c.
Referenced by collect_explicit_location_matches().
void symbol_completer | ( | struct cmd_list_element * | ignore, |
completion_tracker & | tracker, | ||
const char * | text, | ||
const char * | word ) |
Definition at line 1110 of file completer.c.
References collect_symbol_completion_matches(), and EXPRESSION.
Referenced by compile_code_command_completer(), info_module_var_func_command_completer(), info_print_command_completer(), info_types_command_completer(), and info_vars_funcs_command_completer().
|
extern |
Referenced by gdb_display_match_list_1().
|
extern |
Referenced by gdb_display_match_list_1().
|
static |
Definition at line 117 of file completer.c.
Referenced by gdb_completion_word_break_characters(), gdb_completion_word_break_characters_throw(), gdb_rl_attempted_completion_function(), and gdb_rl_attempted_completion_function_throw().
|
static |
Definition at line 677 of file completer.c.
Referenced by collect_explicit_location_matches(), complete_explicit_location_spec(), and location_completer().
|
static |
Definition at line 162 of file completer.c.
Referenced by command_completer_handle_brkchars(), and complete_line_internal_1().
|
static |
Definition at line 171 of file completer.c.
Referenced by advance_to_filename_complete_word_point(), complete_files_symbols(), complete_line_internal_normal_command(), complete_source_filenames(), and filename_completer_handle_brkchars().
|
static |
Definition at line 181 of file completer.c.
Referenced by advance_to_completion_word(), completion_find_completion_word(), get_gdb_completer_quote_characters(), and skip_quoted_chars().
|
static |
Definition at line 1887 of file completer.c.
Referenced by gdb_completion_word_break_characters_throw().
|
static |
Definition at line 1892 of file completer.c.
Referenced by gdb_rl_attempted_completion_function().
int max_completions = 200 |
Definition at line 1468 of file completer.c.
Referenced by complete_command(), complete_line(), gdb_display_match_list(), completion_tracker::maybe_add_completion(), and mi_cmd_complete().
|
static |
Definition at line 689 of file completer.c.
Referenced by location_completer().