|
GDB (xrefs)
|
#include "defs.h"#include "symtab.h"#include "gdbtypes.h"#include "expression.h"#include "filenames.h"#include "language.h"#include "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 | |
| struct | gdb_completer_state |
| struct | gdb_rl_completion_word_info |
Macros | |
| #define | RL_QF_SINGLE_QUOTE 0x01 |
| #define | RL_QF_DOUBLE_QUOTE 0x02 |
| #define | RL_QF_BACKSLASH 0x04 |
| #define | RL_QF_OTHER_QUOTE 0x08 |
| #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) |
| const char * | advance_to_expression_complete_word_point (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, struct event_location *location, 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 (completion_tracker &tracker, struct event_location *location, 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) |
| static void | add_struct_fields (struct type *type, completion_list &output, char *fieldname, int namelen) |
| 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 | set_gdb_completion_word_break_characters (completer_ftype *fn) |
| 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) |
| 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 (void) |
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 2314 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::completion_tracker(), and completion_tracker::discard_completions().
| #define RL_QF_BACKSLASH 0x04 |
Definition at line 206 of file completer.c.
Referenced by gdb_rl_find_completion_word().
| #define RL_QF_DOUBLE_QUOTE 0x02 |
Definition at line 205 of file completer.c.
Referenced by gdb_rl_find_completion_word().
| #define RL_QF_OTHER_QUOTE 0x08 |
Definition at line 207 of file completer.c.
Referenced by gdb_rl_find_completion_word().
| #define RL_QF_SINGLE_QUOTE 0x01 |
Definition at line 204 of file completer.c.
Referenced by gdb_rl_find_completion_word().
| typedef int QSFUNC(const void *, const void *) |
Definition at line 2688 of file completer.c.
| Enumerator | |
|---|---|
| handle_brkchars | |
| handle_completions | |
| handle_help | |
Definition at line 1143 of file completer.c.
| Enumerator | |
|---|---|
| MATCH_SOURCE | |
| MATCH_FUNCTION | |
| MATCH_QUALIFIED | |
| MATCH_LINE | |
| MATCH_LABEL | |
Definition at line 71 of file completer.c.
| enum reg_completer_target |
| Enumerator | |
|---|---|
| complete_register_names | |
| complete_reggroup_names | |
Definition at line 1702 of file completer.c.
| void _initialize_completer | ( | void | ) |
Definition at line 2867 of file completer.c.
References _, add_setshow_zuinteger_unlimited_cmd(), max_completions, no_class, setlist, and showlist.
| EXTERN_C int _rl_qsort_string_compare | ( | const void * | , |
| const void * | |||
| ) |
Referenced by gdb_display_match_list_1().
|
static |
Definition at line 964 of file completer.c.
References check_typedef(), name, TYPE_BASECLASS, TYPE_CODE, TYPE_CODE_UNION, TYPE_FIELD_NAME, TYPE_FIELD_TYPE, TYPE_FN_FIELDLIST_NAME, TYPE_N_BASECLASSES, type_name_no_tag(), TYPE_NFIELDS, and TYPE_NFN_FIELDS.
Referenced by complete_expression().
| const char* advance_to_expression_complete_word_point | ( | completion_tracker & | tracker, |
| const char * | text | ||
| ) |
Definition at line 358 of file completer.c.
References completion_tracker::advance_custom_word_point_by(), gdb_rl_completion_word_info::basic_quote_characters, current_language, gdb_completer_quote_characters, gdb_rl_find_completion_word(), language_defn::la_word_break_characters, gdb_rl_completion_word_info::quote_characters, and gdb_rl_completion_word_info::word_break_characters.
Referenced by complete_address_and_linespec_locations(), complete_linespec_component(), and location_completer().
|
static |
Definition at line 612 of file completer.c.
References completion_tracker::add_completions(), completion_tracker::advance_custom_word_point_by(), complete_on_enum(), completion_tracker::completes_to_completion_word(), completion_tracker::discard_completions(), explicit_options, explicit_location::func_name_match_type, explicit_location::function_name, gdb_assert_not_reached, get_explicit_location(), completion_tracker::have_completions(), explicit_location::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, skip_spaces(), explicit_location::source_filename, and string_or_empty().
Referenced by complete_explicit_location().
| void command_completer | ( | struct cmd_list_element * | ignore, |
| completion_tracker & | tracker, | ||
| const char * | text, | ||
| const char * | word | ||
| ) |
Definition at line 1649 of file completer.c.
References complete_line_internal(), and handle_help.
Referenced by _initialize_cli_cmds(), and completer_handle_brkchars_func_for_completer().
|
static |
Definition at line 1660 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().
|
static |
Definition at line 559 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 759 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 1015 of file completer.c.
References completion_tracker::add_completions(), add_struct_fields(), CATCH, check_typedef(), code, collect_symbol_completion_matches_type(), complete_files_symbols(), do_cleanups(), END_CATCH, make_cleanup(), parse_expression_for_completion(), RETURN_MASK_ERROR, TRY, TYPE_CODE, TYPE_CODE_PTR, TYPE_CODE_STRUCT, TYPE_CODE_UNDEF, TYPE_CODE_UNION, TYPE_IS_REFERENCE, TYPE_TARGET_TYPE, and xfree().
Referenced by complete_address_and_linespec_locations(), complete_linespec_component(), expression_completer(), and location_completer().
|
static |
Definition at line 407 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(), language_defn::la_word_break_characters, make_source_files_completion_list(), 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 1637 of file completer.c.
References complete_line_internal(), handle_completions, and max_completions.
Referenced by complete_command(), and gdb_rl_attempted_completion_function_throw().
|
static |
Definition at line 1449 of file completer.c.
References CATCH, complete_line_internal_1(), END_CATCH, MAX_COMPLETIONS_REACHED_ERROR, RETURN_MASK_ERROR, throw_exception(), and TRY.
Referenced by command_completer(), complete_line(), completion_find_completion_word(), and gdb_completion_word_break_characters_throw().
|
static |
Definition at line 1234 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_assert, gdb_completer_command_word_break_characters, handle_brkchars, handle_help, language_defn::la_word_break_characters, lookup_cmd_1(), cmd_list_element::prefixlist, set_rl_completer_word_break_characters(), and skip_spaces().
Referenced by complete_line_internal().
|
static |
Definition at line 1179 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().
| completion_list complete_source_filenames | ( | const char * | text | ) |
Definition at line 542 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 1796 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 1886 of file completer.c.
References gdb_rl_completion_word_info::basic_quote_characters, complete_line_internal(), completion_tracker::custom_word_point(), gdb_assert, gdb_completer_quote_characters, gdb_rl_find_completion_word(), handle_brkchars, completion_tracker::quote_char(), gdb_rl_completion_word_info::quote_characters, completion_tracker::use_custom_word_point(), and gdb_rl_completion_word_info::word_break_characters.
Referenced by complete_command().
| DEF_ENUM_FLAGS_TYPE | ( | enum | reg_completer_target, |
| reg_completer_targets | |||
| ) |
|
static |
Definition at line 1785 of file completer.c.
References current_language, language_defn::la_word_break_characters, and set_rl_completer_word_break_characters().
Referenced by completer_handle_brkchars_func_for_completer().
|
static |
Definition at line 1979 of file completer.c.
References skip_spaces(), and string.
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 1076 of file completer.c.
References complete_expression().
Referenced by _initialize_breakpoint(), _initialize_printcmd(), _initialize_tracepoint(), _initialize_typeprint(), and condition_completer().
| void filename_completer | ( | struct cmd_list_element * | ignore, |
| completion_tracker & | tracker, | ||
| const char * | text, | ||
| const char * | word | ||
| ) |
Definition at line 152 of file completer.c.
References completion_tracker::add_completion(), and make_completion_match_str().
Referenced by _initialize_auto_load(), _initialize_breakpoint(), _initialize_cli_cmds(), _initialize_cli_dump(), _initialize_compile(), _initialize_core(), _initialize_corelow(), _initialize_ctf(), _initialize_dwarf2_read(), _initialize_exec(), _initialize_infcmd(), _initialize_jit(), _initialize_record(), _initialize_record_full(), _initialize_source(), _initialize_step_skip(), _initialize_symfile(), _initialize_target_descriptions(), _initialize_tracefile_tfile(), add_dump_command(), add_setshow_filename_cmd(), add_setshow_optional_filename_cmd(), complete_line_internal_normal_command(), completer_handle_brkchars_func_for_completer(), init_cli_cmds(), initialize_inferiors(), and set_gdb_completion_word_break_characters().
|
static |
Definition at line 193 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 2678 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 1863 of file completer.c.
References gdb_completer_state::aborted, CATCH, current_completion, END_CATCH, gdb_completion_word_break_characters_throw(), RETURN_MASK_ALL, and TRY.
Referenced by init_main().
|
static |
Definition at line 1826 of file completer.c.
References complete_line_internal(), current_completion, completion_tracker::custom_word_point(), gdb_assert, 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 2819 of file completer.c.
References match_list_displayer::crlf, match_list_displayer::flush, gdb_assert, gdb_display_match_list_1(), gdb_get_y_or_n(), get_max_completions_reached_message(), max_completions, match_list_displayer::puts, and xsnprintf().
Referenced by cli_display_match_list(), and tui_rl_display_match_list().
|
static |
Definition at line 2695 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, INT_MAX, pagination_enabled, match_list_displayer::putch, and qsort.
Referenced by gdb_display_match_list().
|
static |
Definition at line 2363 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 2491 of file completer.c.
References CTRL_CHAR, ELLIPSIS_LEN, memset(), cleanup_check::ps, and match_list_displayer::putch.
Referenced by gdb_print_filename().
|
static |
Definition at line 2437 of file completer.c.
References CTRL_CHAR, memset(), and cleanup_check::ps.
Referenced by gdb_display_match_list_1().
|
static |
Definition at line 2323 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 2384 of file completer.c.
Referenced by gdb_print_filename().
|
static |
Definition at line 2585 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 2403 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 2200 of file completer.c.
References gdb_completer_state::aborted, CATCH, current_completion, END_CATCH, gdb_org_rl_basic_quote_characters, gdb_rl_attempted_completion_function_throw(), RETURN_MASK_ALL, and TRY.
Referenced by init_main().
|
static |
Definition at line 2169 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 231 of file completer.c.
References gdb_rl_completion_word_info::basic_quote_characters, delimiter, gdb_rl_completion_word_info::quote_characters, RL_QF_BACKSLASH, RL_QF_DOUBLE_QUOTE, RL_QF_OTHER_QUOTE, RL_QF_SINGLE_QUOTE, scan(), and gdb_rl_completion_word_info::word_break_characters.
Referenced by advance_to_expression_complete_word_point(), and completion_find_completion_word().
| const char* get_gdb_completer_quote_characters | ( | void | ) |
Definition at line 134 of file completer.c.
References gdb_completer_quote_characters.
Referenced by init_main().
| const char* get_max_completions_reached_message | ( | void | ) |
Definition at line 2287 of file completer.c.
References _.
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 828 of file completer.c.
References completion_tracker::advance_custom_word_point_by(), advance_to_expression_complete_word_point(), complete_address_and_linespec_locations(), complete_explicit_location(), complete_expression(), complete_on_enum(), current_language, completion_tracker::custom_word_point(), explicit_options, explicit_location::func_name_match_type, get_explicit_location(), 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_option, completion_tracker::set_custom_word_point(), completion_tracker::set_quote_char(), skip_keyword(), string_to_explicit_location(), and WILD.
Referenced by _initialize_breakpoint(), _initialize_cli_cmds(), _initialize_infcmd(), _initialize_step_skip(), completer_handle_brkchars_func_for_completer(), and location_completer_handle_brkchars().
|
static |
Definition at line 949 of file completer.c.
References ignore(), 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 1603 of file completer.c.
References make_completion_match_str_1().
Referenced by add_filename_to_list(), complete_on_cmdlist(), complete_on_enum(), 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 1615 of file completer.c.
References make_completion_match_str_1().
|
static |
Definition at line 1572 of file completer.c.
References xmalloc().
Referenced by make_completion_match_str().
| void noop_completer | ( | struct cmd_list_element * | ignore, |
| completion_tracker & | tracker, | ||
| const char * | text, | ||
| const char * | prefix | ||
| ) |
Definition at line 143 of file completer.c.
Referenced by _initialize_infcmd(), and _initialize_jit().
| void reg_or_group_completer | ( | struct cmd_list_element * | ignore, |
| completion_tracker & | tracker, | ||
| const char * | text, | ||
| const char * | word | ||
| ) |
Definition at line 1762 of file completer.c.
References complete_reggroup_names, complete_register_names, and reg_or_group_completer_1().
Referenced by _initialize_infcmd().
|
static |
Definition at line 1713 of file completer.c.
References completion_tracker::add_completion(), complete_reggroup_names, complete_register_names, gdb_assert, get_current_arch(), name, reggroup_name(), reggroup_next(), 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 1774 of file completer.c.
References complete_reggroup_names, and reg_or_group_completer_1().
Referenced by tui_reggroup_completer().
| void set_gdb_completion_word_break_characters | ( | completer_ftype * | fn | ) |
Definition at line 1094 of file completer.c.
References filename_completer(), gdb_completer_command_word_break_characters, gdb_completer_file_name_break_characters, and set_rl_completer_word_break_characters().
| void set_rl_completer_word_break_characters | ( | const char * | break_chars | ) |
Definition at line 1086 of file completer.c.
Referenced by command_completer_handle_brkchars(), complete_line_internal_1(), default_completer_handle_brkchars(), filename_completer_handle_brkchars(), init_main(), and set_gdb_completion_word_break_characters().
| void signal_completer | ( | struct cmd_list_element * | ignore, |
| completion_tracker & | tracker, | ||
| const char * | text, | ||
| const char * | word | ||
| ) |
Definition at line 1671 of file completer.c.
References completion_tracker::add_completion(), GDB_SIGNAL_FIRST, and gdb_signal_to_name().
Referenced by _initialize_break_catch_sig(), _initialize_infcmd(), and handle_completer().
|
static |
Definition at line 719 of file completer.c.
References completion_tracker::advance_custom_word_point_by(), and skip_to_space().
Referenced by complete_explicit_location(), 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 2235 of file completer.c.
References current_language, gdb_completer_quote_characters, language_defn::la_word_break_characters, and scan().
Referenced by skip_quoted().
|
static |
Definition at line 603 of file completer.c.
References string.
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 1111 of file completer.c.
References collect_symbol_completion_matches(), and EXPRESSION.
Referenced by do_add_cmd().
| int _rl_completion_prefix_display_length |
Referenced by gdb_display_match_list_1().
| int _rl_print_completions_horizontally |
Referenced by gdb_display_match_list_1().
|
static |
Definition at line 65 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 580 of file completer.c.
Referenced by collect_explicit_location_matches(), complete_explicit_location(), and location_completer().
|
static |
Definition at line 110 of file completer.c.
Referenced by command_completer_handle_brkchars(), complete_line_internal_1(), and set_gdb_completion_word_break_characters().
|
static |
Definition at line 119 of file completer.c.
Referenced by complete_files_symbols(), complete_line_internal_normal_command(), complete_source_filenames(), filename_completer_handle_brkchars(), and set_gdb_completion_word_break_characters().
|
static |
Definition at line 129 of file completer.c.
Referenced by advance_to_expression_complete_word_point(), completion_find_completion_word(), get_gdb_completer_quote_characters(), and skip_quoted_chars().
|
static |
Definition at line 1815 of file completer.c.
Referenced by gdb_completion_word_break_characters_throw().
|
static |
Definition at line 1820 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 _initialize_completer(), complete_command(), complete_line(), gdb_display_match_list(), and completion_tracker::maybe_add_completion().
|
static |
Definition at line 592 of file completer.c.
Referenced by location_completer().
1.8.14