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 "cli/cli-decode.h"
#include "gdbcmd.h"
#include "readline/readline.h"
#include "completer.h"
Go to the source code of this file.
Macros | |
#define | ELLIPSIS_LEN 3 |
Typedefs | |
typedef int | QSFUNC(const void *, const void *) |
Enumerations | |
enum | complete_line_internal_reason { handle_brkchars, handle_completions, handle_help } |
enum | reg_completer_targets { complete_register_names = 0x1, complete_reggroup_names = 0x2 } |
Variables | |
static char * | gdb_completer_command_word_break_characters |
static char * | gdb_completer_file_name_break_characters = " \t\n*|\"';:?><" |
static char * | gdb_completer_quote_characters = "'" |
int | max_completions = 200 |
int | _rl_completion_prefix_display_length |
int | _rl_print_completions_horizontally |
initialize_file_ftype | _initialize_completer |
#define ELLIPSIS_LEN 3 |
Definition at line 1224 of file completer.c.
Referenced by gdb_display_match_list_1(), and gdb_fnprint().
Definition at line 1597 of file completer.c.
Enumerator | |
---|---|
handle_brkchars | |
handle_completions | |
handle_help |
Definition at line 496 of file completer.c.
Enumerator | |
---|---|
complete_register_names | |
complete_reggroup_names |
Definition at line 976 of file completer.c.
void _initialize_completer | ( | void | ) |
Definition at line 1778 of file completer.c.
References _, add_setshow_zuinteger_unlimited_cmd(), no_class, setlist, and showlist.
Referenced by gdb_display_match_list_1().
|
static |
Definition at line 340 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, TYPE_NFN_FIELDS, and VEC_safe_push.
|
static |
Definition at line 810 of file completer.c.
Referenced by make_cleanup_free_completion_tracker().
|
static |
Definition at line 1587 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 1054 of file completer.c.
References gdb_assert, handle_brkchars, and VEC().
Referenced by init_main().
void gdb_display_match_list | ( | char ** | matches, |
int | len, | ||
int | max, | ||
const struct match_list_displayer * | displayer | ||
) |
Definition at line 1728 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(), match_list_displayer::puts, and xsnprintf().
Referenced by cli_display_match_list(), and tui_rl_display_match_list().
|
static |
Definition at line 1604 of file completer.c.
References _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, max, pagination_enabled, match_list_displayer::putch, and qsort.
Referenced by gdb_display_match_list().
|
static |
Definition at line 1273 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 1401 of file completer.c.
References CTRL_CHAR, ELLIPSIS_LEN, cleanup_check::ps, and match_list_displayer::putch.
Referenced by gdb_print_filename().
Definition at line 1347 of file completer.c.
References CTRL_CHAR, and cleanup_check::ps.
Referenced by gdb_display_match_list_1().
|
static |
Definition at line 1233 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().
Definition at line 1294 of file completer.c.
Referenced by gdb_print_filename().
|
static |
Definition at line 1495 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 1313 of file completer.c.
Referenced by gdb_display_match_list_1().
char* get_gdb_completer_quote_characters | ( | void | ) |
Definition at line 94 of file completer.c.
References gdb_completer_quote_characters.
Referenced by init_main().
const char* get_max_completions_reached_message | ( | void | ) |
Definition at line 1197 of file completer.c.
References _.
Referenced by complete_command(), and gdb_display_match_list().
|
static |
Definition at line 1086 of file completer.c.
References current_language, language_defn::la_word_break_characters, VEC(), VEC_free, VEC_index, and VEC_length.
Referenced by readline_line_completion_function().
struct cleanup* make_cleanup_free_completion_tracker | ( | completion_tracker_t * | tracker_ptr | ) |
Definition at line 821 of file completer.c.
References free_completion_tracker(), make_cleanup(), and null_cleanup().
Referenced by default_make_symbol_completion_list_break_on_1().
enum maybe_add_completion_enum maybe_add_completion | ( | completion_tracker_t | tracker, |
char * | name | ||
) |
Definition at line 832 of file completer.c.
References gdb_assert, MAYBE_ADD_COMPLETION_DUPLICATE, MAYBE_ADD_COMPLETION_MAX_REACHED, MAYBE_ADD_COMPLETION_OK, MAYBE_ADD_COMPLETION_OK_MAX_REACHED, and name.
Referenced by VEC().
completion_tracker_t new_completion_tracker | ( | void | ) |
Definition at line 796 of file completer.c.
References streq(), xcalloc(), and xfree().
Referenced by default_make_symbol_completion_list_break_on_1().
Definition at line 102 of file completer.c.
References line_completion_function().
Referenced by init_main().
void set_gdb_completion_word_break_characters | ( | completer_ftype * | fn | ) |
Definition at line 461 of file completer.c.
References gdb_completer_command_word_break_characters, and gdb_completer_file_name_break_characters.
Referenced by cmdpy_completer_handle_brkchars().
const char* skip_quoted_chars | ( | const char * | str, |
const char * | quotechars, | ||
const char * | breakchars | ||
) |
Definition at line 1145 of file completer.c.
References current_language, gdb_completer_quote_characters, language_defn::la_word_break_characters, and scan().
Referenced by skip_quoted().
void throw_max_completions_reached_error | ( | void | ) |
Definition at line 859 of file completer.c.
References _, MAX_COMPLETIONS_REACHED_ERROR, and throw_error().
Referenced by VEC().
VEC | ( | char_ptr | ) |
Definition at line 110 of file completer.c.
Referenced by gdb_completion_word_break_characters(), and line_completion_function().
initialize_file_ftype _initialize_completer |
int _rl_completion_prefix_display_length |
int _rl_print_completions_horizontally |
|
static |
Definition at line 71 of file completer.c.
Referenced by set_gdb_completion_word_break_characters().
|
static |
Definition at line 83 of file completer.c.
Referenced by set_gdb_completion_word_break_characters().
|
static |
Definition at line 89 of file completer.c.
Referenced by get_gdb_completer_quote_characters(), and skip_quoted_chars().
int max_completions = 200 |
Definition at line 791 of file completer.c.
Referenced by complete_command().