GDB (xrefs)
|
#include "defs.h"
#include "symtab.h"
#include <ctype.h>
#include "gdbsupport/gdb_regex.h"
#include "completer.h"
#include "ui-out.h"
#include "cli/cli-cmds.h"
#include "cli/cli-decode.h"
#include "cli/cli-style.h"
#include "gdbsupport/gdb_optional.h"
Go to the source code of this file.
Functions | |
static void | undef_cmd_error (const char *, const char *) |
static cmd_list_element::aliases_list_type | delete_cmd (const char *name, cmd_list_element **list, cmd_list_element **prehook, cmd_list_element **prehookee, cmd_list_element **posthook, cmd_list_element **posthookee) |
static struct cmd_list_element * | find_cmd (const char *command, int len, struct cmd_list_element *clist, int ignore_help_classes, int *nfound) |
static void | help_cmd_list (struct cmd_list_element *list, enum command_class theclass, bool recurse, struct ui_file *stream) |
static void | help_all (struct ui_file *stream) |
static int | lookup_cmd_composition_1 (const char *text, struct cmd_list_element **alias, struct cmd_list_element **prefix_cmd, struct cmd_list_element **cmd, struct cmd_list_element *cur_list) |
static struct cmd_list_element * | lookup_cmd_with_subcommands (cmd_list_element **subcommands, cmd_list_element *list) |
static void | print_help_for_command (const cmd_list_element &c, bool recurse, struct ui_file *stream) |
static void | do_simple_func (const char *args, int from_tty, cmd_list_element *c) |
static void | set_cmd_simple_func (struct cmd_list_element *cmd, cmd_simple_func_ftype *simple_func) |
int | cmd_simple_func_eq (struct cmd_list_element *cmd, cmd_simple_func_ftype *simple_func) |
void | set_cmd_completer (struct cmd_list_element *cmd, completer_ftype *completer) |
void | set_cmd_completer_handle_brkchars (struct cmd_list_element *cmd, completer_handle_brkchars_ftype *func) |
static struct cmd_list_element * | do_add_cmd (const char *name, enum command_class theclass, const char *doc, struct cmd_list_element **list) |
struct cmd_list_element * | add_cmd (const char *name, enum command_class theclass, const char *doc, struct cmd_list_element **list) |
struct cmd_list_element * | add_cmd (const char *name, enum command_class theclass, cmd_simple_func_ftype *fun, const char *doc, struct cmd_list_element **list) |
struct cmd_list_element * | add_cmd_suppress_notification (const char *name, enum command_class theclass, cmd_simple_func_ftype *fun, const char *doc, struct cmd_list_element **list, bool *suppress_notification) |
struct cmd_list_element * | deprecate_cmd (struct cmd_list_element *cmd, const char *replacement) |
struct cmd_list_element * | add_alias_cmd (const char *name, cmd_list_element *target, enum command_class theclass, int abbrev_flag, struct cmd_list_element **list) |
static void | update_prefix_field_of_prefixed_commands (struct cmd_list_element *c) |
struct cmd_list_element * | add_prefix_cmd (const char *name, enum command_class theclass, cmd_simple_func_ftype *fun, const char *doc, struct cmd_list_element **subcommands, int allow_unknown, struct cmd_list_element **list) |
static void | do_prefix_cmd (const char *args, int from_tty, struct cmd_list_element *c) |
struct cmd_list_element * | add_basic_prefix_cmd (const char *name, enum command_class theclass, const char *doc, struct cmd_list_element **subcommands, int allow_unknown, struct cmd_list_element **list) |
static void | do_show_prefix_cmd (const char *args, int from_tty, struct cmd_list_element *c) |
struct cmd_list_element * | add_show_prefix_cmd (const char *name, enum command_class theclass, const char *doc, struct cmd_list_element **subcommands, int allow_unknown, struct cmd_list_element **list) |
set_show_commands | add_setshow_prefix_cmd (const char *name, command_class theclass, const char *set_doc, const char *show_doc, cmd_list_element **set_subcommands_list, cmd_list_element **show_subcommands_list, cmd_list_element **set_list, cmd_list_element **show_list) |
struct cmd_list_element * | add_prefix_cmd_suppress_notification (const char *name, enum command_class theclass, cmd_simple_func_ftype *fun, const char *doc, struct cmd_list_element **subcommands, int allow_unknown, struct cmd_list_element **list, bool *suppress_notification) |
struct cmd_list_element * | add_abbrev_prefix_cmd (const char *name, enum command_class theclass, cmd_simple_func_ftype *fun, const char *doc, struct cmd_list_element **subcommands, int allow_unknown, struct cmd_list_element **list) |
void | not_just_help_class_command (const char *args, int from_tty) |
static void | empty_func (const char *args, int from_tty, cmd_list_element *c) |
static struct cmd_list_element * | add_set_or_show_cmd (const char *name, enum cmd_types type, enum command_class theclass, var_types var_type, const literal_def *extra_literals, const setting::erased_args &arg, const char *doc, struct cmd_list_element **list) |
static set_show_commands | add_setshow_cmd_full_erased (const char *name, enum command_class theclass, var_types var_type, const literal_def *extra_literals, const setting::erased_args &args, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list) |
static void | integer_literals_completer (struct cmd_list_element *c, completion_tracker &tracker, const char *text, const char *word) |
template<typename T > | |
static set_show_commands | add_setshow_cmd_full (const char *name, enum command_class theclass, var_types var_type, T *var, const literal_def *extra_literals, const char *set_doc, const char *show_doc, const char *help_doc, typename setting_func_types< T >::set set_setting_func, typename setting_func_types< T >::get get_setting_func, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list) |
template<typename T > | |
static set_show_commands | add_setshow_cmd_full (const char *name, enum command_class theclass, var_types var_type, T *var, const char *set_doc, const char *show_doc, const char *help_doc, typename setting_func_types< T >::set set_setting_func, typename setting_func_types< T >::get get_setting_func, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list) |
set_show_commands | add_setshow_enum_cmd (const char *name, enum command_class theclass, const char *const *enumlist, const char **var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list) |
set_show_commands | add_setshow_enum_cmd (const char *name, command_class theclass, const char *const *enumlist, const char *set_doc, const char *show_doc, const char *help_doc, setting_func_types< const char * >::set set_func, setting_func_types< const char * >::get get_func, show_value_ftype *show_func, cmd_list_element **set_list, cmd_list_element **show_list) |
set_show_commands | add_setshow_auto_boolean_cmd (const char *name, enum command_class theclass, enum auto_boolean *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list) |
set_show_commands | add_setshow_auto_boolean_cmd (const char *name, command_class theclass, const char *set_doc, const char *show_doc, const char *help_doc, setting_func_types< enum auto_boolean >::set set_func, setting_func_types< enum auto_boolean >::get get_func, show_value_ftype *show_func, cmd_list_element **set_list, cmd_list_element **show_list) |
set_show_commands | add_setshow_boolean_cmd (const char *name, enum command_class theclass, bool *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list) |
set_show_commands | add_setshow_boolean_cmd (const char *name, command_class theclass, const char *set_doc, const char *show_doc, const char *help_doc, setting_func_types< bool >::set set_func, setting_func_types< bool >::get get_func, show_value_ftype *show_func, cmd_list_element **set_list, cmd_list_element **show_list) |
set_show_commands | add_setshow_filename_cmd (const char *name, enum command_class theclass, std::string *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list) |
set_show_commands | add_setshow_filename_cmd (const char *name, command_class theclass, const char *set_doc, const char *show_doc, const char *help_doc, setting_func_types< std::string >::set set_func, setting_func_types< std::string >::get get_func, show_value_ftype *show_func, cmd_list_element **set_list, cmd_list_element **show_list) |
set_show_commands | add_setshow_string_cmd (const char *name, enum command_class theclass, std::string *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list) |
set_show_commands | add_setshow_string_cmd (const char *name, command_class theclass, const char *set_doc, const char *show_doc, const char *help_doc, setting_func_types< std::string >::set set_func, setting_func_types< std::string >::get get_func, show_value_ftype *show_func, cmd_list_element **set_list, cmd_list_element **show_list) |
set_show_commands | add_setshow_string_noescape_cmd (const char *name, enum command_class theclass, std::string *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list) |
set_show_commands | add_setshow_string_noescape_cmd (const char *name, command_class theclass, const char *set_doc, const char *show_doc, const char *help_doc, setting_func_types< std::string >::set set_func, setting_func_types< std::string >::get get_func, show_value_ftype *show_func, cmd_list_element **set_list, cmd_list_element **show_list) |
set_show_commands | add_setshow_optional_filename_cmd (const char *name, enum command_class theclass, std::string *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list) |
set_show_commands | add_setshow_optional_filename_cmd (const char *name, command_class theclass, const char *set_doc, const char *show_doc, const char *help_doc, setting_func_types< std::string >::set set_func, setting_func_types< std::string >::get get_func, show_value_ftype *show_func, cmd_list_element **set_list, cmd_list_element **show_list) |
set_show_commands | add_setshow_integer_cmd (const char *name, enum command_class theclass, int *var, const literal_def *extra_literals, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list) |
set_show_commands | add_setshow_integer_cmd (const char *name, command_class theclass, const literal_def *extra_literals, const char *set_doc, const char *show_doc, const char *help_doc, setting_func_types< int >::set set_func, setting_func_types< int >::get get_func, show_value_ftype *show_func, cmd_list_element **set_list, cmd_list_element **show_list) |
set_show_commands | add_setshow_integer_cmd (const char *name, enum command_class theclass, int *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list) |
set_show_commands | add_setshow_integer_cmd (const char *name, command_class theclass, const char *set_doc, const char *show_doc, const char *help_doc, setting_func_types< int >::set set_func, setting_func_types< int >::get get_func, show_value_ftype *show_func, cmd_list_element **set_list, cmd_list_element **show_list) |
set_show_commands | add_setshow_pinteger_cmd (const char *name, enum command_class theclass, int *var, const literal_def *extra_literals, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list) |
set_show_commands | add_setshow_pinteger_cmd (const char *name, command_class theclass, const literal_def *extra_literals, const char *set_doc, const char *show_doc, const char *help_doc, setting_func_types< int >::set set_func, setting_func_types< int >::get get_func, show_value_ftype *show_func, cmd_list_element **set_list, cmd_list_element **show_list) |
set_show_commands | add_setshow_uinteger_cmd (const char *name, enum command_class theclass, unsigned int *var, const literal_def *extra_literals, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list) |
set_show_commands | add_setshow_uinteger_cmd (const char *name, command_class theclass, const literal_def *extra_literals, const char *set_doc, const char *show_doc, const char *help_doc, setting_func_types< unsigned int >::set set_func, setting_func_types< unsigned int >::get get_func, show_value_ftype *show_func, cmd_list_element **set_list, cmd_list_element **show_list) |
set_show_commands | add_setshow_uinteger_cmd (const char *name, enum command_class theclass, unsigned int *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list) |
set_show_commands | add_setshow_uinteger_cmd (const char *name, command_class theclass, const char *set_doc, const char *show_doc, const char *help_doc, setting_func_types< unsigned int >::set set_func, setting_func_types< unsigned int >::get get_func, show_value_ftype *show_func, cmd_list_element **set_list, cmd_list_element **show_list) |
set_show_commands | add_setshow_zinteger_cmd (const char *name, enum command_class theclass, int *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list) |
set_show_commands | add_setshow_zinteger_cmd (const char *name, command_class theclass, const char *set_doc, const char *show_doc, const char *help_doc, setting_func_types< int >::set set_func, setting_func_types< int >::get get_func, show_value_ftype *show_func, cmd_list_element **set_list, cmd_list_element **show_list) |
set_show_commands | add_setshow_zuinteger_unlimited_cmd (const char *name, enum command_class theclass, int *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list) |
set_show_commands | add_setshow_zuinteger_unlimited_cmd (const char *name, command_class theclass, const char *set_doc, const char *show_doc, const char *help_doc, setting_func_types< int >::set set_func, setting_func_types< int >::get get_func, show_value_ftype *show_func, cmd_list_element **set_list, cmd_list_element **show_list) |
set_show_commands | add_setshow_zuinteger_cmd (const char *name, enum command_class theclass, unsigned int *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list) |
set_show_commands | add_setshow_zuinteger_cmd (const char *name, command_class theclass, const char *set_doc, const char *show_doc, const char *help_doc, setting_func_types< unsigned int >::set set_func, setting_func_types< unsigned int >::get get_func, show_value_ftype *show_func, cmd_list_element **set_list, cmd_list_element **show_list) |
struct cmd_list_element * | add_info (const char *name, cmd_simple_func_ftype *fun, const char *doc) |
cmd_list_element * | add_info_alias (const char *name, cmd_list_element *target, int abbrev_flag) |
struct cmd_list_element * | add_com (const char *name, enum command_class theclass, cmd_simple_func_ftype *fun, const char *doc) |
cmd_list_element * | add_com_alias (const char *name, cmd_list_element *target, command_class theclass, int abbrev_flag) |
struct cmd_list_element * | add_com_suppress_notification (const char *name, enum command_class theclass, cmd_simple_func_ftype *fun, const char *doc, bool *suppress_notification) |
static void | fput_command_name_styled (const cmd_list_element &c, struct ui_file *stream) |
static bool | user_documented_alias (const cmd_list_element &alias) |
static void | fput_alias_definition_styled (const cmd_list_element &c, struct ui_file *stream) |
static void | fput_aliases_definition_styled (const cmd_list_element &cmd, struct ui_file *stream) |
static void | fput_command_names_styled (const cmd_list_element &c, bool always_fput_c_name, const char *postfix, struct ui_file *stream) |
static void | print_doc_of_command (const cmd_list_element &c, bool verbose, compiled_regex &highlight, struct ui_file *stream) |
void | apropos_cmd (struct ui_file *stream, struct cmd_list_element *commandlist, bool verbose, compiled_regex ®ex) |
void | help_cmd (const char *command, struct ui_file *stream) |
void | help_list (struct cmd_list_element *list, const char *cmdtype, enum command_class theclass, struct ui_file *stream) |
void | print_doc_line (struct ui_file *stream, const char *str, bool for_value_prefix) |
int | find_command_name_length (const char *text) |
bool | valid_cmd_char_p (int c) |
bool | valid_user_defined_cmd_name_p (const char *name) |
struct cmd_list_element * | lookup_cmd_1 (const char **text, struct cmd_list_element *clist, struct cmd_list_element **result_list, std::string *default_args, int ignore_help_classes, bool lookup_for_completion_p) |
struct cmd_list_element * | lookup_cmd (const char **line, struct cmd_list_element *list, const char *cmdtype, std::string *default_args, int allow_unknown, int ignore_help_classes) |
struct cmd_list_element * | lookup_cmd_exact (const char *name, struct cmd_list_element *list, bool ignore_help_classes) |
void | deprecated_cmd_warning (const char *text, struct cmd_list_element *list) |
int | lookup_cmd_composition (const char *text, struct cmd_list_element **alias, struct cmd_list_element **prefix_cmd, struct cmd_list_element **cmd) |
void | complete_on_cmdlist (struct cmd_list_element *list, completion_tracker &tracker, const char *text, const char *word, int ignore_help_classes) |
void | complete_on_enum (completion_tracker &tracker, const char *const *enumlist, const char *text, const char *word) |
void | cmd_func (struct cmd_list_element *cmd, const char *args, int from_tty) |
int | cli_user_command_p (struct cmd_list_element *cmd) |
Variables | |
const char *const | auto_boolean_enums [] = { "on", "off", "auto", NULL } |
const char *const | boolean_enums [] = { "on", "off", NULL } |
const literal_def | integer_unlimited_literals [] |
const literal_def | uinteger_unlimited_literals [] |
const literal_def | pinteger_unlimited_literals [] |
struct cmd_list_element * add_abbrev_prefix_cmd | ( | const char * | name, |
enum command_class | theclass, | ||
cmd_simple_func_ftype * | fun, | ||
const char * | doc, | ||
struct cmd_list_element ** | subcommands, | ||
int | allow_unknown, | ||
struct cmd_list_element ** | list ) |
Definition at line 468 of file cli-decode.c.
References cmd_list_element::abbrev_flag, add_cmd(), cmd_list_element::allow_unknown, cmd_list_element::doc, name, cmd_list_element::subcommands, and cmd_list_element::theclass.
struct cmd_list_element * add_alias_cmd | ( | const char * | name, |
cmd_list_element * | target, | ||
enum command_class | theclass, | ||
int | abbrev_flag, | ||
struct cmd_list_element ** | list ) |
Definition at line 294 of file cli-decode.c.
References cmd_list_element::abbrev_flag, add_cmd(), cmd_list_element::alias_target, cmd_list_element::aliases, cmd_list_element::allow_unknown, cmd_list_element::doc, cmd_list_element::doc_allocated, cmd_list_element::func, cmd_list_element::function, name, cmd_list_element::subcommands, and cmd_list_element::theclass.
Referenced by _initialize_mips_tdep(), _initialize_sparc64_adi_tdep(), _initialize_windows_tdep(), add_com_alias(), add_info_alias(), add_packet_config_cmd(), add_task_commands(), add_thread_commands(), alias_command(), initialize_current_architecture(), and install_gdb_commands().
struct cmd_list_element * add_basic_prefix_cmd | ( | const char * | name, |
enum command_class | theclass, | ||
const char * | doc, | ||
struct cmd_list_element ** | subcommands, | ||
int | allow_unknown, | ||
struct cmd_list_element ** | list ) |
Definition at line 391 of file cli-decode.c.
References add_prefix_cmd(), cmd_list_element::allow_unknown, do_prefix_cmd(), cmd_list_element::doc, cmd_list_element::func, name, cmd_list_element::subcommands, and cmd_list_element::theclass.
Referenced by _initialize_arc_tdep(), _initialize_go32_nat(), _initialize_mips_tdep(), _initialize_sparc64_adi_tdep(), add_setshow_prefix_cmd(), add_target(), init_w32_command_list(), install_gdb_commands(), and tui_get_cmd_list().
struct cmd_list_element * add_cmd | ( | const char * | name, |
enum command_class | theclass, | ||
cmd_simple_func_ftype * | fun, | ||
const char * | doc, | ||
struct cmd_list_element ** | list ) |
Definition at line 243 of file cli-decode.c.
References do_add_cmd(), cmd_list_element::doc, name, set_cmd_simple_func(), and cmd_list_element::theclass.
struct cmd_list_element * add_cmd | ( | const char * | name, |
enum command_class | theclass, | ||
const char * | doc, | ||
struct cmd_list_element ** | list ) |
Definition at line 233 of file cli-decode.c.
References do_add_cmd(), cmd_list_element::doc, cmd_list_element::func, cmd_list_element::function, name, cmd_list_element::simple_func, and cmd_list_element::theclass.
Referenced by _initialize_arc_tdep(), _initialize_go32_nat(), _initialize_hppa_tdep(), _initialize_mips_tdep(), _initialize_sol_thread(), _initialize_sparc64_adi_tdep(), _initialize_windows_nat(), _initialize_windows_tdep(), add_abbrev_prefix_cmd(), add_alias_cmd(), add_catch_command(), add_cmd_suppress_notification(), add_com(), add_deprecated_target_alias(), add_dump_command(), add_info(), add_layout_command(), add_prefix_cmd(), add_set_or_show_cmd(), add_target(), add_task_commands(), add_thread_commands(), bsd_kvm_add_target(), cmdpy_init(), define_prefix_command(), do_add_internal_function(), do_define_command(), gdbpy_initialize_auto_load(), gdbscm_initialize_auto_load(), gdbscm_register_command_x(), initialize_inferiors(), initialize_progspace(), initialize_remote_fileio(), and s12z_gdbarch_init().
struct cmd_list_element * add_cmd_suppress_notification | ( | const char * | name, |
enum command_class | theclass, | ||
cmd_simple_func_ftype * | fun, | ||
const char * | doc, | ||
struct cmd_list_element ** | list, | ||
bool * | suppress_notification ) |
Definition at line 255 of file cli-decode.c.
References add_cmd(), cmd_list_element::doc, name, cmd_list_element::suppress_notification, and cmd_list_element::theclass.
Referenced by add_com_suppress_notification().
struct cmd_list_element * add_com | ( | const char * | name, |
enum command_class | theclass, | ||
cmd_simple_func_ftype * | fun, | ||
const char * | doc ) |
Definition at line 1504 of file cli-decode.c.
References add_cmd(), cmdlist, cmd_list_element::doc, name, and cmd_list_element::theclass.
Referenced by _initialize_procfs(), _initialize_remote_sim(), _initialize_windows_nat(), init_main(), initialize_inferiors(), and install_gdb_commands().
cmd_list_element * add_com_alias | ( | const char * | name, |
cmd_list_element * | target, | ||
command_class | theclass, | ||
int | abbrev_flag ) |
Definition at line 1517 of file cli-decode.c.
References cmd_list_element::abbrev_flag, add_alias_cmd(), cmdlist, name, and cmd_list_element::theclass.
Referenced by alias_command(), and install_gdb_commands().
struct cmd_list_element * add_com_suppress_notification | ( | const char * | name, |
enum command_class | theclass, | ||
cmd_simple_func_ftype * | fun, | ||
const char * | doc, | ||
bool * | suppress_notification ) |
Definition at line 1526 of file cli-decode.c.
References add_cmd_suppress_notification(), cmdlist, cmd_list_element::doc, name, cmd_list_element::suppress_notification, and cmd_list_element::theclass.
struct cmd_list_element * add_info | ( | const char * | name, |
cmd_simple_func_ftype * | fun, | ||
const char * | doc ) |
Definition at line 1488 of file cli-decode.c.
References add_cmd(), class_info, cmd_list_element::doc, infolist, and name.
Referenced by _initialize_avr_tdep(), _initialize_darwin_info_commands(), _initialize_procfs(), _initialize_ser_dos(), add_task_commands(), gdbpy_initialize_auto_load(), and initialize_inferiors().
cmd_list_element * add_info_alias | ( | const char * | name, |
cmd_list_element * | target, | ||
int | abbrev_flag ) |
Definition at line 1496 of file cli-decode.c.
References cmd_list_element::abbrev_flag, add_alias_cmd(), class_run, infolist, and name.
Referenced by add_task_commands(), and install_gdb_commands().
struct cmd_list_element * add_prefix_cmd | ( | const char * | name, |
enum command_class | theclass, | ||
cmd_simple_func_ftype * | fun, | ||
const char * | doc, | ||
struct cmd_list_element ** | subcommands, | ||
int | allow_unknown, | ||
struct cmd_list_element ** | list ) |
Definition at line 357 of file cli-decode.c.
References add_cmd(), cmd_list_element::allow_unknown, cmd_list_element::doc, name, cmd_list_element::subcommands, cmd_list_element::theclass, and update_prefix_field_of_prefixed_commands().
Referenced by add_basic_prefix_cmd(), add_prefix_cmd_suppress_notification(), add_show_prefix_cmd(), add_task_commands(), auto_load_info_cmdlist_get(), auto_load_set_cmdlist_get(), bsd_kvm_add_target(), cmdpy_init(), gdbscm_register_command_x(), and info_probes_cmdlist_get().
struct cmd_list_element * add_prefix_cmd_suppress_notification | ( | const char * | name, |
enum command_class | theclass, | ||
cmd_simple_func_ftype * | fun, | ||
const char * | doc, | ||
struct cmd_list_element ** | subcommands, | ||
int | allow_unknown, | ||
struct cmd_list_element ** | list, | ||
bool * | suppress_notification ) |
Definition at line 451 of file cli-decode.c.
References add_prefix_cmd(), cmd_list_element::allow_unknown, cmd_list_element::doc, name, cmd_list_element::subcommands, cmd_list_element::suppress_notification, and cmd_list_element::theclass.
|
static |
Definition at line 506 of file cli-decode.c.
References add_cmd(), cmd_list_element::doc, empty_func(), extra_literals, cmd_list_element::func, name, set_cmd, show_cmd, cmd_list_element::theclass, cmd_list_element::type, type, and cmd_list_element::var.
Referenced by add_setshow_cmd_full_erased().
set_show_commands add_setshow_auto_boolean_cmd | ( | const char * | name, |
command_class | theclass, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
setting_func_types< enum auto_boolean >::set | set_func, | ||
setting_func_types< enum auto_boolean >::get | get_func, | ||
show_value_ftype * | show_func, | ||
cmd_list_element ** | set_list, | ||
cmd_list_element ** | show_list ) |
Definition at line 777 of file cli-decode.c.
References auto_boolean_enums, name, cmd_list_element::theclass, and var_auto_boolean.
set_show_commands add_setshow_auto_boolean_cmd | ( | const char * | name, |
enum command_class | theclass, | ||
enum auto_boolean * | var, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
cmd_func_ftype * | set_func, | ||
show_value_ftype * | show_func, | ||
struct cmd_list_element ** | set_list, | ||
struct cmd_list_element ** | show_list ) |
Definition at line 752 of file cli-decode.c.
References auto_boolean_enums, cmd_list_element::enums, name, set_show_commands::set, cmd_list_element::theclass, cmd_list_element::var, and var_auto_boolean.
Referenced by _initialize_mips_tdep(), _initialize_riscv_tdep(), _initialize_rs6000_tdep(), add_packet_config_cmd(), add_setshow_generic(), add_setshow_generic(), and init_main().
set_show_commands add_setshow_boolean_cmd | ( | const char * | name, |
command_class | theclass, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
setting_func_types< bool >::set | set_func, | ||
setting_func_types< bool >::get | get_func, | ||
show_value_ftype * | show_func, | ||
cmd_list_element ** | set_list, | ||
cmd_list_element ** | show_list ) |
Definition at line 832 of file cli-decode.c.
References boolean_enums, name, cmd_list_element::theclass, and var_boolean.
set_show_commands add_setshow_boolean_cmd | ( | const char * | name, |
enum command_class | theclass, | ||
bool * | var, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
cmd_func_ftype * | set_func, | ||
show_value_ftype * | show_func, | ||
struct cmd_list_element ** | set_list, | ||
struct cmd_list_element ** | show_list ) |
Definition at line 809 of file cli-decode.c.
References boolean_enums, cmd_list_element::enums, name, set_show_commands::set, cmd_list_element::theclass, cmd_list_element::var, and var_boolean.
Referenced by _initialize_aarch64_tdep(), _initialize_aix_thread(), _initialize_arc_tdep(), _initialize_arm_tdep(), _initialize_cris_tdep(), _initialize_csky_tdep(), _initialize_darwin_nat(), _initialize_fbsd_nat(), _initialize_gnu_nat(), _initialize_hppa_tdep(), _initialize_mips_linux_nat(), _initialize_mips_tdep(), _initialize_nios2_tdep(), _initialize_or1k_tdep(), _initialize_proc_api(), _initialize_riscv_tdep(), _initialize_rs6000_tdep(), _initialize_s390_nat(), _initialize_windows_nat(), _initialize_windows_tdep(), add_internal_problem_command(), gdb::option::add_setshow_cmds_for_options(), add_setshow_generic(), add_setshow_generic(), add_show_debug_regs_command(), add_show_debug_regs_command(), gdbpy_initialize_auto_load(), gdbscm_initialize_auto_load(), init_main(), and initialize_inferiors().
|
static |
Definition at line 664 of file cli-decode.c.
References add_setshow_cmd_full(), name, cmd_list_element::theclass, and cmd_list_element::var.
|
static |
Definition at line 627 of file cli-decode.c.
References add_setshow_cmd_full_erased(), setting::erase_args(), extra_literals, integer_literals_completer(), name, set_cmd_completer(), cmd_list_element::theclass, and cmd_list_element::var.
Referenced by add_setshow_cmd_full().
|
static |
Definition at line 539 of file cli-decode.c.
References add_set_or_show_cmd(), cmd_list_element::doc_allocated, extra_literals, cmd_list_element::func, name, set_cmd, set_cmd_completer(), show_cmd, cmd_list_element::show_value_func, and cmd_list_element::theclass.
Referenced by add_setshow_cmd_full().
set_show_commands add_setshow_enum_cmd | ( | const char * | name, |
command_class | theclass, | ||
const char *const * | enumlist, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
setting_func_types< const char * >::set | set_func, | ||
setting_func_types< const char * >::get | get_func, | ||
show_value_ftype * | show_func, | ||
cmd_list_element ** | set_list, | ||
cmd_list_element ** | show_list ) |
Definition at line 723 of file cli-decode.c.
References name, cmd_list_element::theclass, and var_enum.
set_show_commands add_setshow_enum_cmd | ( | const char * | name, |
enum command_class | theclass, | ||
const char *const * | enumlist, | ||
const char ** | var, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
cmd_func_ftype * | set_func, | ||
show_value_ftype * | show_func, | ||
struct cmd_list_element ** | set_list, | ||
struct cmd_list_element ** | show_list ) |
Definition at line 688 of file cli-decode.c.
References cmd_list_element::enums, name, set_show_commands::set, cmd_list_element::theclass, cmd_list_element::var, and var_enum.
Referenced by _initialize_arm_tdep(), _initialize_cris_tdep(), _initialize_mips_tdep(), _initialize_rs6000_tdep(), _initialize_sh_tdep(), add_internal_problem_command(), add_set_language_command(), gdb::option::add_setshow_cmds_for_options(), cli_style_option::add_setshow_commands(), add_setshow_generic(), add_setshow_generic(), initialize_current_architecture(), and install_gdb_commands().
set_show_commands add_setshow_filename_cmd | ( | const char * | name, |
command_class | theclass, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
setting_func_types< std::string >::set | set_func, | ||
setting_func_types< std::string >::get | get_func, | ||
show_value_ftype * | show_func, | ||
cmd_list_element ** | set_list, | ||
cmd_list_element ** | show_list ) |
Definition at line 879 of file cli-decode.c.
References filename_completer(), name, set_cmd_completer(), cmd_list_element::theclass, and var_filename.
set_show_commands add_setshow_filename_cmd | ( | const char * | name, |
enum command_class | theclass, | ||
std::string * | var, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
cmd_func_ftype * | set_func, | ||
show_value_ftype * | show_func, | ||
struct cmd_list_element ** | set_list, | ||
struct cmd_list_element ** | show_list ) |
Definition at line 855 of file cli-decode.c.
References filename_completer(), name, set_show_commands::set, set_cmd_completer(), cmd_list_element::theclass, cmd_list_element::var, and var_filename.
Referenced by _initialize_proc_api(), add_setshow_generic(), add_setshow_generic(), and init_main().
set_show_commands add_setshow_integer_cmd | ( | const char * | name, |
command_class | theclass, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
setting_func_types< int >::set | set_func, | ||
setting_func_types< int >::get | get_func, | ||
show_value_ftype * | show_func, | ||
cmd_list_element ** | set_list, | ||
cmd_list_element ** | show_list ) |
Definition at line 1126 of file cli-decode.c.
References integer_unlimited_literals, name, cmd_list_element::theclass, and var_integer.
set_show_commands add_setshow_integer_cmd | ( | const char * | name, |
command_class | theclass, | ||
const literal_def * | extra_literals, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
setting_func_types< int >::set | set_func, | ||
setting_func_types< int >::get | get_func, | ||
show_value_ftype * | show_func, | ||
cmd_list_element ** | set_list, | ||
cmd_list_element ** | show_list ) |
Definition at line 1076 of file cli-decode.c.
References extra_literals, name, cmd_list_element::theclass, and var_integer.
set_show_commands add_setshow_integer_cmd | ( | const char * | name, |
enum command_class | theclass, | ||
int * | var, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
cmd_func_ftype * | set_func, | ||
show_value_ftype * | show_func, | ||
struct cmd_list_element ** | set_list, | ||
struct cmd_list_element ** | show_list ) |
Definition at line 1104 of file cli-decode.c.
References integer_unlimited_literals, name, cmd_list_element::theclass, cmd_list_element::var, and var_integer.
set_show_commands add_setshow_integer_cmd | ( | const char * | name, |
enum command_class | theclass, | ||
int * | var, | ||
const literal_def * | extra_literals, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
cmd_func_ftype * | set_func, | ||
show_value_ftype * | show_func, | ||
struct cmd_list_element ** | set_list, | ||
struct cmd_list_element ** | show_list ) |
Definition at line 1055 of file cli-decode.c.
References extra_literals, name, cmd_list_element::theclass, cmd_list_element::var, and var_integer.
Referenced by gdb::option::add_setshow_cmds_for_options(), add_setshow_generic(), and add_setshow_generic().
set_show_commands add_setshow_optional_filename_cmd | ( | const char * | name, |
command_class | theclass, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
setting_func_types< std::string >::set | set_func, | ||
setting_func_types< std::string >::get | get_func, | ||
show_value_ftype * | show_func, | ||
cmd_list_element ** | set_list, | ||
cmd_list_element ** | show_list ) |
Definition at line 1028 of file cli-decode.c.
References filename_completer(), name, set_cmd_completer(), cmd_list_element::theclass, and var_optional_filename.
set_show_commands add_setshow_optional_filename_cmd | ( | const char * | name, |
enum command_class | theclass, | ||
std::string * | var, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
cmd_func_ftype * | set_func, | ||
show_value_ftype * | show_func, | ||
struct cmd_list_element ** | set_list, | ||
struct cmd_list_element ** | show_list ) |
Definition at line 1004 of file cli-decode.c.
References filename_completer(), name, set_show_commands::set, set_cmd_completer(), cmd_list_element::theclass, cmd_list_element::var, and var_optional_filename.
Referenced by add_setshow_generic(), add_setshow_generic(), and init_main().
set_show_commands add_setshow_pinteger_cmd | ( | const char * | name, |
command_class | theclass, | ||
const literal_def * | extra_literals, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
setting_func_types< int >::set | set_func, | ||
setting_func_types< int >::get | get_func, | ||
show_value_ftype * | show_func, | ||
cmd_list_element ** | set_list, | ||
cmd_list_element ** | show_list ) |
Definition at line 1170 of file cli-decode.c.
References extra_literals, name, cmd_list_element::theclass, and var_pinteger.
set_show_commands add_setshow_pinteger_cmd | ( | const char * | name, |
enum command_class | theclass, | ||
int * | var, | ||
const literal_def * | extra_literals, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
cmd_func_ftype * | set_func, | ||
show_value_ftype * | show_func, | ||
struct cmd_list_element ** | set_list, | ||
struct cmd_list_element ** | show_list ) |
Definition at line 1149 of file cli-decode.c.
References extra_literals, name, cmd_list_element::theclass, cmd_list_element::var, and var_pinteger.
Referenced by gdb::option::add_setshow_cmds_for_options(), add_setshow_generic(), and add_setshow_generic().
set_show_commands add_setshow_prefix_cmd | ( | const char * | name, |
command_class | theclass, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
cmd_list_element ** | set_subcommands_list, | ||
cmd_list_element ** | show_subcommands_list, | ||
cmd_list_element ** | set_list, | ||
cmd_list_element ** | show_list ) |
Definition at line 428 of file cli-decode.c.
References add_basic_prefix_cmd(), add_show_prefix_cmd(), name, set_show_commands::set, set_show_commands::show, and cmd_list_element::theclass.
Referenced by _initialize_arm_tdep(), _initialize_mips_tdep(), _initialize_riscv_tdep(), _initialize_rs6000_tdep(), _initialize_sh_tdep(), add_internal_problem_command(), cli_style_option::add_setshow_commands(), add_thread_commands(), and install_gdb_commands().
set_show_commands add_setshow_string_cmd | ( | const char * | name, |
command_class | theclass, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
setting_func_types< std::string >::set | set_func, | ||
setting_func_types< std::string >::get | get_func, | ||
show_value_ftype * | show_func, | ||
cmd_list_element ** | set_list, | ||
cmd_list_element ** | show_list ) |
Definition at line 928 of file cli-decode.c.
References name, set_cmd_completer(), cmd_list_element::theclass, and var_string.
set_show_commands add_setshow_string_cmd | ( | const char * | name, |
enum command_class | theclass, | ||
std::string * | var, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
cmd_func_ftype * | set_func, | ||
show_value_ftype * | show_func, | ||
struct cmd_list_element ** | set_list, | ||
struct cmd_list_element ** | show_list ) |
Definition at line 903 of file cli-decode.c.
References name, set_show_commands::set, set_cmd_completer(), cmd_list_element::theclass, cmd_list_element::var, and var_string.
Referenced by gdb::option::add_setshow_cmds_for_options(), add_setshow_generic(), add_setshow_generic(), and init_main().
set_show_commands add_setshow_string_noescape_cmd | ( | const char * | name, |
command_class | theclass, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
setting_func_types< std::string >::set | set_func, | ||
setting_func_types< std::string >::get | get_func, | ||
show_value_ftype * | show_func, | ||
cmd_list_element ** | set_list, | ||
cmd_list_element ** | show_list ) |
Definition at line 978 of file cli-decode.c.
References name, set_cmd_completer(), cmd_list_element::theclass, and var_string_noescape.
set_show_commands add_setshow_string_noescape_cmd | ( | const char * | name, |
enum command_class | theclass, | ||
std::string * | var, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
cmd_func_ftype * | set_func, | ||
show_value_ftype * | show_func, | ||
struct cmd_list_element ** | set_list, | ||
struct cmd_list_element ** | show_list ) |
Definition at line 953 of file cli-decode.c.
References name, set_show_commands::set, set_cmd_completer(), cmd_list_element::theclass, cmd_list_element::var, and var_string_noescape.
Referenced by add_setshow_generic(), and add_setshow_generic().
set_show_commands add_setshow_uinteger_cmd | ( | const char * | name, |
command_class | theclass, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
setting_func_types< unsigned int >::set | set_func, | ||
setting_func_types< unsigned int >::get | get_func, | ||
show_value_ftype * | show_func, | ||
cmd_list_element ** | set_list, | ||
cmd_list_element ** | show_list ) |
Definition at line 1266 of file cli-decode.c.
References name, cmd_list_element::theclass, uinteger_unlimited_literals, and var_uinteger.
set_show_commands add_setshow_uinteger_cmd | ( | const char * | name, |
command_class | theclass, | ||
const literal_def * | extra_literals, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
setting_func_types< unsigned int >::set | set_func, | ||
setting_func_types< unsigned int >::get | get_func, | ||
show_value_ftype * | show_func, | ||
cmd_list_element ** | set_list, | ||
cmd_list_element ** | show_list ) |
Definition at line 1214 of file cli-decode.c.
References extra_literals, name, cmd_list_element::theclass, and var_uinteger.
set_show_commands add_setshow_uinteger_cmd | ( | const char * | name, |
enum command_class | theclass, | ||
unsigned int * | var, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
cmd_func_ftype * | set_func, | ||
show_value_ftype * | show_func, | ||
struct cmd_list_element ** | set_list, | ||
struct cmd_list_element ** | show_list ) |
Definition at line 1244 of file cli-decode.c.
References name, cmd_list_element::theclass, uinteger_unlimited_literals, cmd_list_element::var, and var_uinteger.
set_show_commands add_setshow_uinteger_cmd | ( | const char * | name, |
enum command_class | theclass, | ||
unsigned int * | var, | ||
const literal_def * | extra_literals, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
cmd_func_ftype * | set_func, | ||
show_value_ftype * | show_func, | ||
struct cmd_list_element ** | set_list, | ||
struct cmd_list_element ** | show_list ) |
Definition at line 1193 of file cli-decode.c.
References extra_literals, name, cmd_list_element::theclass, cmd_list_element::var, and var_uinteger.
Referenced by gdb::option::add_setshow_cmds_for_options(), add_setshow_generic(), and add_setshow_generic().
set_show_commands add_setshow_zinteger_cmd | ( | const char * | name, |
command_class | theclass, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
setting_func_types< int >::set | set_func, | ||
setting_func_types< int >::get | get_func, | ||
show_value_ftype * | show_func, | ||
cmd_list_element ** | set_list, | ||
cmd_list_element ** | show_list ) |
Definition at line 1310 of file cli-decode.c.
References name, cmd_list_element::theclass, and var_integer.
set_show_commands add_setshow_zinteger_cmd | ( | const char * | name, |
enum command_class | theclass, | ||
int * | var, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
cmd_func_ftype * | set_func, | ||
show_value_ftype * | show_func, | ||
struct cmd_list_element ** | set_list, | ||
struct cmd_list_element ** | show_list ) |
Definition at line 1291 of file cli-decode.c.
References name, cmd_list_element::theclass, cmd_list_element::var, and var_integer.
Referenced by _initialize_alpha_tdep(), _initialize_mips_tdep(), _initialize_ser_dos(), and init_main().
set_show_commands add_setshow_zuinteger_cmd | ( | const char * | name, |
command_class | theclass, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
setting_func_types< unsigned int >::set | set_func, | ||
setting_func_types< unsigned int >::get | get_func, | ||
show_value_ftype * | show_func, | ||
cmd_list_element ** | set_list, | ||
cmd_list_element ** | show_list ) |
Definition at line 1403 of file cli-decode.c.
References name, cmd_list_element::theclass, and var_uinteger.
set_show_commands add_setshow_zuinteger_cmd | ( | const char * | name, |
enum command_class | theclass, | ||
unsigned int * | var, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
cmd_func_ftype * | set_func, | ||
show_value_ftype * | show_func, | ||
struct cmd_list_element ** | set_list, | ||
struct cmd_list_element ** | show_list ) |
Definition at line 1384 of file cli-decode.c.
References name, cmd_list_element::theclass, cmd_list_element::var, and var_uinteger.
Referenced by _initialize_bpf_tdep(), _initialize_cris_tdep(), _initialize_darwin_nat(), _initialize_dsbt_solib(), _initialize_machoread(), _initialize_microblaze_tdep(), _initialize_mips_tdep(), and _initialize_xtensa_tdep().
set_show_commands add_setshow_zuinteger_unlimited_cmd | ( | const char * | name, |
command_class | theclass, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
setting_func_types< int >::set | set_func, | ||
setting_func_types< int >::get | get_func, | ||
show_value_ftype * | show_func, | ||
cmd_list_element ** | set_list, | ||
cmd_list_element ** | show_list ) |
Definition at line 1360 of file cli-decode.c.
References name, pinteger_unlimited_literals, cmd_list_element::theclass, and var_pinteger.
set_show_commands add_setshow_zuinteger_unlimited_cmd | ( | const char * | name, |
enum command_class | theclass, | ||
int * | var, | ||
const char * | set_doc, | ||
const char * | show_doc, | ||
const char * | help_doc, | ||
cmd_func_ftype * | set_func, | ||
show_value_ftype * | show_func, | ||
struct cmd_list_element ** | set_list, | ||
struct cmd_list_element ** | show_list ) |
Definition at line 1336 of file cli-decode.c.
References name, pinteger_unlimited_literals, cmd_list_element::theclass, cmd_list_element::var, and var_pinteger.
Referenced by init_main().
struct cmd_list_element * add_show_prefix_cmd | ( | const char * | name, |
enum command_class | theclass, | ||
const char * | doc, | ||
struct cmd_list_element ** | subcommands, | ||
int | allow_unknown, | ||
struct cmd_list_element ** | list ) |
Definition at line 414 of file cli-decode.c.
References add_prefix_cmd(), cmd_list_element::allow_unknown, do_show_prefix_cmd(), cmd_list_element::doc, cmd_list_element::func, name, cmd_list_element::subcommands, and cmd_list_element::theclass.
Referenced by add_setshow_prefix_cmd(), and auto_load_show_cmdlist_get().
void apropos_cmd | ( | struct ui_file * | stream, |
struct cmd_list_element * | commandlist, | ||
bool | verbose, | ||
compiled_regex & | regex ) |
Definition at line 1674 of file cli-decode.c.
References alias, cmd_list_element::aliases, apropos_cmd(), cmd_list_element::doc, cmd_list_element::is_alias(), cmd_list_element::is_prefix(), cmd_list_element::name, cmd_list_element::next, print_doc_of_command(), cmd_list_element::subcommands, and user_documented_alias().
Referenced by apropos_cmd(), and apropos_command().
int cli_user_command_p | ( | struct cmd_list_element * | cmd | ) |
Definition at line 2742 of file cli-decode.c.
References class_user, do_simple_func(), cmd_list_element::func, and cmd_list_element::theclass.
Referenced by has_user_subcmd(), show_user(), and show_user_1().
void cmd_func | ( | struct cmd_list_element * | cmd, |
const char * | args, | ||
int | from_tty ) |
Definition at line 2726 of file cli-decode.c.
References cmd_list_element::func, cmd_list_element::is_command_class_help(), and cmd_list_element::suppress_notification.
Referenced by cmd_show_list(), execute_command(), info_auto_load_cmd(), and show_remote_cmd().
int cmd_simple_func_eq | ( | struct cmd_list_element * | cmd, |
cmd_simple_func_ftype * | simple_func ) |
Definition at line 110 of file cli-decode.c.
References do_simple_func(), cmd_list_element::func, cmd_list_element::function, and cmd_list_element::simple_func.
Referenced by encode_actions_1(), is_complete_command(), trace_dump_actions(), and validate_actionline().
void complete_on_cmdlist | ( | struct cmd_list_element * | list, |
completion_tracker & | tracker, | ||
const char * | text, | ||
const char * | word, | ||
int | ignore_help_classes ) |
Definition at line 2653 of file cli-decode.c.
References cmd_list_element::abbrev_flag, completion_tracker::add_completion(), cmd_list_element::cmd_deprecated, cmd_list_element::is_command_class_help(), cmd_list_element::is_prefix(), make_completion_match_str(), cmd_list_element::name, and cmd_list_element::next.
Referenced by complete_line_internal_1().
void complete_on_enum | ( | completion_tracker & | tracker, |
const char *const * | enumlist, | ||
const char * | text, | ||
const char * | word ) |
Definition at line 2711 of file cli-decode.c.
References completion_tracker::add_completion(), make_completion_match_str(), and name.
Referenced by backtrace_command_completer(), catch_syscall_completer(), collect_explicit_location_matches(), complete_explicit_location_spec(), complete_line_internal_1(), complete_linespec_component(), complete_set_gnutarget(), cp_abi_completer(), disassembler_options_completer(), handle_completer(), location_completer(), maint_info_sections_completer(), gdb::option::parse_option(), tui_reggroup_completer(), and window_name_completer().
|
static |
Definition at line 1426 of file cli-decode.c.
References cmd_list_element::alias_target, cmd_list_element::aliases, cmd_list_element::context(), cmd_list_element::destroyer, cmd_list_element::hook_post, cmd_list_element::hook_pre, cmd_list_element::hookee_post, cmd_list_element::hookee_pre, cmd_list_element::is_alias(), name, cmd_list_element::name, and cmd_list_element::next.
Referenced by do_add_cmd().
struct cmd_list_element * deprecate_cmd | ( | struct cmd_list_element * | cmd, |
const char * | replacement ) |
Definition at line 280 of file cli-decode.c.
References cmd_list_element::cmd_deprecated, cmd_list_element::deprecated_warn_user, and cmd_list_element::replacement.
Referenced by add_deprecated_target_alias(), and gdbpy_initialize_auto_load().
void deprecated_cmd_warning | ( | const char * | text, |
struct cmd_list_element * | list ) |
Definition at line 2464 of file cli-decode.c.
References alias, cmd_list_element::cmd_deprecated, cmd_list_element::deprecated_warn_user, gdb_printf(), lookup_cmd_composition_1(), cmd_list_element::name, cmd_list_element::prefix, cmd_list_element::prefixname(), cmd_list_element::replacement, cli_style_option::style(), styled_string(), and title_style.
Referenced by execute_command(), and lookup_cmd_1().
|
static |
Definition at line 181 of file cli-decode.c.
References alias, cmd_list_element::aliases, cmdlist, delete_cmd(), cmd_list_element::doc, cmd_list_element::hook_post, cmd_list_element::hook_pre, cmd_list_element::hookee_post, cmd_list_element::hookee_pre, lookup_cmd_with_subcommands(), name, cmd_list_element::name, cmd_list_element::next, cmd_list_element::prefix, and cmd_list_element::theclass.
|
static |
Definition at line 378 of file cli-decode.c.
References cmd_list_element::alias_target, all_commands, gdb_stdout, help_list(), cmd_list_element::is_alias(), cmd_list_element::prefixname(), and cmd_list_element::subcommands.
Referenced by add_basic_prefix_cmd().
|
static |
Definition at line 406 of file cli-decode.c.
References cmd_show_list(), and cmd_list_element::subcommands.
Referenced by add_show_prefix_cmd().
|
static |
Definition at line 93 of file cli-decode.c.
References cmd_list_element::function, and cmd_list_element::simple_func.
Referenced by cli_user_command_p(), cmd_simple_func_eq(), and set_cmd_simple_func().
|
static |
Definition at line 490 of file cli-decode.c.
Referenced by add_set_or_show_cmd().
|
static |
Definition at line 2086 of file cli-decode.c.
References cmd_list_element::is_command_class_help(), cmd_list_element::name, and cmd_list_element::next.
Referenced by lookup_cmd_1(), and lookup_cmd_composition_1().
int find_command_name_length | ( | const char * | text | ) |
Definition at line 2111 of file cli-decode.c.
References valid_cmd_char_p().
Referenced by line_first_arg(), lookup_cmd(), lookup_cmd_1(), and lookup_cmd_composition_1().
|
static |
Definition at line 1562 of file cli-decode.c.
References cmd_list_element::alias_target, cmd_list_element::default_args, fput_command_name_styled(), gdb_printf(), gdb_puts(), and cmd_list_element::is_alias().
Referenced by fput_aliases_definition_styled(), help_cmd(), and print_help_for_command().
|
static |
Definition at line 1577 of file cli-decode.c.
References alias, cmd_list_element::aliases, fput_alias_definition_styled(), and user_documented_alias().
Referenced by help_cmd(), print_doc_of_command(), and print_help_for_command().
|
static |
Definition at line 1537 of file cli-decode.c.
References fprintf_styled(), cmd_list_element::name, cmd_list_element::prefix, cmd_list_element::prefixname(), cli_style_option::style(), and title_style.
Referenced by fput_alias_definition_styled(), and fput_command_names_styled().
|
static |
Definition at line 1594 of file cli-decode.c.
References alias, cmd_list_element::aliases, fput_command_name_styled(), gdb_puts(), user_documented_alias(), and ui_file::wrap_here().
Referenced by help_cmd(), print_doc_of_command(), and print_help_for_command().
|
static |
Definition at line 1900 of file cli-decode.c.
References cmd_list_element::abbrev_flag, cmdlist, gdb_printf(), help_cmd_list(), cmd_list_element::is_command_class_help(), cmd_list_element::name, cmd_list_element::next, no_class, print_help_for_command(), and cmd_list_element::theclass.
Referenced by help_cmd().
void help_cmd | ( | const char * | command, |
struct ui_file * | stream ) |
Definition at line 1744 of file cli-decode.c.
References alias, all_classes, all_commands, cmdlist, cmd_list_element::doc, fput_alias_definition_styled(), fput_aliases_definition_styled(), fput_command_names_styled(), gdb_printf(), gdb_puts(), help_all(), help_list(), cmd_list_element::hook_post, cmd_list_element::hook_pre, cmd_list_element::is_command_class_help(), cmd_list_element::is_prefix(), lookup_cmd(), lookup_cmd_composition(), cmd_list_element::name, cmd_list_element::prefixname(), cmd_list_element::subcommands, cmd_list_element::theclass, and user_documented_alias().
Referenced by help_command().
|
static |
Definition at line 2026 of file cli-decode.c.
References cmd_list_element::abbrev_flag, all_classes, all_commands, class_alias, class_user, cmd_list_element::cmd_deprecated, help_cmd_list(), cmd_list_element::is_alias(), cmd_list_element::is_command_class_help(), cmd_list_element::is_prefix(), cmd_list_element::next, print_help_for_command(), cmd_list_element::subcommands, and cmd_list_element::theclass.
Referenced by help_all(), help_cmd_list(), help_list(), and print_help_for_command().
void help_list | ( | struct cmd_list_element * | list, |
const char * | cmdtype, | ||
enum command_class | theclass, | ||
struct ui_file * | stream ) |
Definition at line 1841 of file cli-decode.c.
References all_classes, gdb_printf(), gdb_puts(), help_cmd_list(), cmd_list_element::theclass, and ui_file::wrap_here().
Referenced by do_prefix_cmd(), execute_command(), help_cmd(), info_command(), memory_tag_command(), set_source(), show_source(), tui_layout_command(), and tui_window_command().
|
static |
Definition at line 589 of file cli-decode.c.
References completion_tracker::add_completion(), extra_literals, literal_def::literal, and cmd_list_element::var.
Referenced by add_setshow_cmd_full().
struct cmd_list_element * lookup_cmd | ( | const char ** | line, |
struct cmd_list_element * | list, | ||
const char * | cmdtype, | ||
std::string * | default_args, | ||
int | allow_unknown, | ||
int | ignore_help_classes ) |
Definition at line 2325 of file cli-decode.c.
References cmd_list_element::allow_unknown, CMD_LIST_AMBIGUOUS, cmd_list_element::default_args, find_command_name_length(), cmd_list_element::is_prefix(), lookup_cmd_1(), cmd_list_element::name, cmd_list_element::next, cmd_list_element::prefixname(), set_cmd, cmd_list_element::subcommands, cmd_list_element::type, and undef_cmd_error().
Referenced by encode_actions_1(), execute_command(), help_cmd(), lookup_cmd_exact(), lookup_cmd_for_default_args(), setting_cmd(), show_user(), trace_dump_actions(), validate_actionline(), validate_comname(), and with_command_1().
struct cmd_list_element * lookup_cmd_1 | ( | const char ** | text, |
struct cmd_list_element * | clist, | ||
struct cmd_list_element ** | result_list, | ||
std::string * | default_args, | ||
int | ignore_help_classes, | ||
bool | lookup_for_completion_p ) |
Definition at line 2172 of file cli-decode.c.
References cmd_list_element::alias_target, CMD_LIST_AMBIGUOUS, cmd_list_element::default_args, deprecated_cmd_warning(), cmd_list_element::deprecated_warn_user, find_cmd(), find_command_name_length(), cmd_list_element::is_alias(), cmd_list_element::is_prefix(), lookup_cmd_1(), and cmd_list_element::subcommands.
Referenced by alias_command(), complete_line_internal_1(), gdbpy_parse_command_name(), gdbscm_parse_command_name(), lookup_cmd(), lookup_cmd_1(), pascm_parameter_defined_p(), process_next_line(), set_verbose(), and validate_aliased_command().
int lookup_cmd_composition | ( | const char * | text, |
struct cmd_list_element ** | alias, | ||
struct cmd_list_element ** | prefix_cmd, | ||
struct cmd_list_element ** | cmd ) |
Definition at line 2634 of file cli-decode.c.
References alias, cmdlist, and lookup_cmd_composition_1().
Referenced by alias_command(), do_document_command(), gdbscm_parameter_value(), help_cmd(), lookup_cmd_for_default_args(), and maintenance_do_deprecate().
|
static |
Definition at line 2560 of file cli-decode.c.
References alias, cmd_list_element::alias_target, CMD_LIST_AMBIGUOUS, find_cmd(), find_command_name_length(), cmd_list_element::prefix, and cmd_list_element::subcommands.
Referenced by deprecated_cmd_warning(), and lookup_cmd_composition().
struct cmd_list_element * lookup_cmd_exact | ( | const char * | name, |
struct cmd_list_element * | list, | ||
bool | ignore_help_classes ) |
Definition at line 2429 of file cli-decode.c.
References lookup_cmd(), name, and cmd_list_element::name.
Referenced by define_prefix_command(), and do_define_command().
|
static |
Definition at line 61 of file cli-decode.c.
References cmd_list_element::alias_target, cmd_list_element::is_alias(), cmd_list_element::is_prefix(), lookup_cmd_with_subcommands(), cmd_list_element::next, and cmd_list_element::subcommands.
Referenced by do_add_cmd(), and lookup_cmd_with_subcommands().
void not_just_help_class_command | ( | const char * | args, |
int | from_tty ) |
Definition at line 483 of file cli-decode.c.
void print_doc_line | ( | struct ui_file * | stream, |
const char * | str, | ||
bool | for_value_prefix ) |
Definition at line 1944 of file cli-decode.c.
References gdb_puts(), xfree(), and xmalloc().
Referenced by deprecated_show_value_hack(), print_doc_of_command(), and print_help_for_command().
|
static |
Definition at line 1640 of file cli-decode.c.
References cmd_list_element::doc, fput_aliases_definition_styled(), fput_command_names_styled(), fputs_highlighted(), gdb_puts(), and print_doc_line().
Referenced by apropos_cmd().
|
static |
Definition at line 1987 of file cli-decode.c.
References cmd_list_element::abbrev_flag, all_commands, cmd_list_element::default_args, cmd_list_element::doc, fput_alias_definition_styled(), fput_aliases_definition_styled(), fput_command_names_styled(), gdb_puts(), help_cmd_list(), cmd_list_element::is_prefix(), print_doc_line(), and cmd_list_element::subcommands.
Referenced by help_all(), and help_cmd_list().
void set_cmd_completer | ( | struct cmd_list_element * | cmd, |
completer_ftype * | completer ) |
Definition at line 117 of file cli-decode.c.
References cmd_list_element::completer.
Referenced by _initialize_remote_sim(), add_catch_command(), add_setshow_cmd_full(), add_setshow_cmd_full_erased(), add_setshow_filename_cmd(), add_setshow_filename_cmd(), add_setshow_optional_filename_cmd(), add_setshow_optional_filename_cmd(), add_setshow_string_cmd(), add_setshow_string_cmd(), add_setshow_string_noescape_cmd(), add_setshow_string_noescape_cmd(), add_target(), cmdpy_init(), gdbscm_register_command_x(), and initialize_inferiors().
void set_cmd_completer_handle_brkchars | ( | struct cmd_list_element * | cmd, |
completer_handle_brkchars_ftype * | func ) |
Definition at line 125 of file cli-decode.c.
References cmd_list_element::completer_handle_brkchars, and func.
Referenced by cmdpy_init().
|
static |
Definition at line 99 of file cli-decode.c.
References do_simple_func(), cmd_list_element::func, cmd_list_element::function, and cmd_list_element::simple_func.
Referenced by add_cmd().
|
static |
Definition at line 2295 of file cli-decode.c.
Referenced by lookup_cmd().
|
static |
Definition at line 328 of file cli-decode.c.
References cmd_list_element::prefix, cmd_list_element::subcommands, and update_prefix_field_of_prefixed_commands().
Referenced by add_prefix_cmd(), and update_prefix_field_of_prefixed_commands().
|
static |
Definition at line 1549 of file cli-decode.c.
References alias.
Referenced by apropos_cmd(), fput_aliases_definition_styled(), fput_command_names_styled(), and help_cmd().
bool valid_cmd_char_p | ( | int | c | ) |
Definition at line 2140 of file cli-decode.c.
Referenced by complete_line_internal_1(), find_command_name_length(), gdbpy_parse_command_name(), gdbscm_parse_command_name(), valid_user_defined_cmd_name_p(), and validate_comname().
bool valid_user_defined_cmd_name_p | ( | const char * | name | ) |
Definition at line 2151 of file cli-decode.c.
References name, and valid_cmd_char_p().
Referenced by alias_command().
const char* const auto_boolean_enums[] = { "on", "off", "auto", NULL } |
Definition at line 744 of file cli-decode.c.
Referenced by add_setshow_auto_boolean_cmd(), add_setshow_auto_boolean_cmd(), and do_set_command().
const char* const boolean_enums[] = { "on", "off", NULL } |
Definition at line 800 of file cli-decode.c.
Referenced by add_setshow_boolean_cmd(), add_setshow_boolean_cmd(), and gdb::option::parse_option().
const literal_def integer_unlimited_literals[] |
Definition at line 1094 of file cli-decode.c.
Referenced by add_setshow_integer_cmd(), and add_setshow_integer_cmd().
const literal_def pinteger_unlimited_literals[] |
Definition at line 1326 of file cli-decode.c.
Referenced by add_setshow_zuinteger_unlimited_cmd(), and add_setshow_zuinteger_unlimited_cmd().
const literal_def uinteger_unlimited_literals[] |
Definition at line 1234 of file cli-decode.c.
Referenced by add_setshow_uinteger_cmd(), and add_setshow_uinteger_cmd().