GDB (xrefs)
|
#include "cli-decode.h"
Public Types | |
using | aliases_list_node_type = intrusive_list_node<cmd_list_element> |
using | aliases_list_member_node_type |
using | aliases_list_type = intrusive_list<cmd_list_element, aliases_list_member_node_type> |
Public Member Functions | |
cmd_list_element (const char *name_, enum command_class theclass_, const char *doc_) | |
~cmd_list_element () | |
DISABLE_COPY_AND_ASSIGN (cmd_list_element) | |
std::string | prefixname () const |
std::vector< std::string > | command_components () const |
bool | is_alias () const |
bool | is_prefix () const |
bool | is_command_class_help () const |
void | set_context (void *context) |
void * | context () const |
Private Attributes | |
void * | m_context = nullptr |
Definition at line 45 of file cli-decode.h.
Definition at line 262 of file cli-decode.h.
using cmd_list_element::aliases_list_node_type = intrusive_list_node<cmd_list_element> |
Definition at line 258 of file cli-decode.h.
using cmd_list_element::aliases_list_type = intrusive_list<cmd_list_element, aliases_list_member_node_type> |
Definition at line 264 of file cli-decode.h.
|
inline |
Definition at line 47 of file cli-decode.h.
References function.
|
inline |
Definition at line 65 of file cli-decode.h.
References doc, doc_allocated, name, name_allocated, and xfree().
std::vector< std::string > cmd_list_element::command_components | ( | ) | const |
Definition at line 151 of file cli-decode.c.
References command_components(), name, and prefix.
Referenced by command_components(), full_cmd_name_without_first_prefix(), and setting_cmd().
|
inline |
Definition at line 109 of file cli-decode.h.
References m_context.
Referenced by call_dump_func(), catch_ada_exception_command(), catch_ada_handlers_command(), catch_assert_command(), catch_catch_command(), catch_exec_command_1(), catch_fork_command_1(), catch_load_or_unload(), catch_rethrow_command(), catch_signal_command(), catch_syscall_command_1(), catch_throw_command(), cmdpy_completer_helper(), cmdpy_destroyer(), cmdpy_function(), cmdscm_completer(), cmdscm_function(), delete_cmd(), cli_style_option::do_set_value(), do_show(), get_set_value(), get_show_value(), open_target(), pascm_set_func(), pascm_show_func(), set_context(), set_remote_protocol_packet_cmd(), show_remote_protocol_packet_cmd(), and tui_apply_layout().
cmd_list_element::DISABLE_COPY_AND_ASSIGN | ( | cmd_list_element | ) |
|
inline |
Definition at line 90 of file cli-decode.h.
References alias_target.
Referenced by apropos_cmd(), cmd_show_list(), delete_cmd(), do_prefix_cmd(), fput_alias_definition_styled(), has_user_subcmd(), help_cmd_list(), lookup_cmd_1(), lookup_cmd_with_subcommands(), and selftests::command_structure_tests::traverse_command_structure().
|
inline |
Definition at line 100 of file cli-decode.h.
References func.
Referenced by cmd_func(), complete_on_cmdlist(), execute_command(), find_cmd(), help_all(), help_cmd(), and help_cmd_list().
|
inline |
Definition at line 94 of file cli-decode.h.
References subcommands.
Referenced by alias_command(), apropos_cmd(), selftests::help_doc_tests::check_doc(), cmd_show_list(), cmdpy_function(), cmdpy_init(), complete_line_internal_1(), complete_on_cmdlist(), define_prefix_command(), do_define_command(), execute_command(), gdbpy_parse_command_name(), gdbscm_make_command(), gdbscm_parse_command_name(), has_user_subcmd(), help_cmd(), help_cmd_list(), info_auto_load_cmd(), lookup_cmd(), lookup_cmd_1(), lookup_cmd_with_subcommands(), prefixname(), print_help_for_command(), show_user(), show_user_1(), selftests::command_structure_tests::traverse_command_structure(), and validate_comname().
std::string cmd_list_element::prefixname | ( | ) | const |
Definition at line 132 of file cli-decode.c.
References is_prefix(), name, prefix, and prefixname().
Referenced by selftests::help_doc_tests::check_doc(), cmd_show_list(), deprecated_cmd_warning(), do_prefix_cmd(), execute_command(), fput_command_name_styled(), help_cmd(), lookup_cmd(), prefixname(), show_user_1(), and selftests::command_structure_tests::traverse_command_structure().
|
inline |
Definition at line 103 of file cli-decode.h.
References context(), and m_context.
Referenced by add_catch_command(), add_deprecated_target_alias(), add_dump_command(), add_layout_command(), add_packet_config_cmd(), cli_style_option::add_setshow_commands(), add_setshow_generic(), add_setshow_generic(), add_target(), cmdpy_init(), and gdbscm_register_command_x().
unsigned int cmd_list_element::abbrev_flag |
Definition at line 164 of file cli-decode.h.
Referenced by add_abbrev_prefix_cmd(), add_alias_cmd(), add_com_alias(), add_info_alias(), selftests::help_doc_tests::check_doc(), complete_on_cmdlist(), help_all(), help_cmd_list(), and print_help_for_command().
struct cmd_list_element* cmd_list_element::alias_target = nullptr |
Definition at line 255 of file cli-decode.h.
Referenced by add_alias_cmd(), delete_cmd(), do_prefix_cmd(), fput_alias_definition_styled(), is_alias(), lookup_cmd_1(), lookup_cmd_composition_1(), and lookup_cmd_with_subcommands().
aliases_list_type cmd_list_element::aliases |
Definition at line 265 of file cli-decode.h.
Referenced by add_alias_cmd(), apropos_cmd(), delete_cmd(), do_add_cmd(), fput_aliases_definition_styled(), and fput_command_names_styled().
aliases_list_node_type cmd_list_element::aliases_list_node |
Definition at line 259 of file cli-decode.h.
unsigned int cmd_list_element::allow_unknown |
Definition at line 158 of file cli-decode.h.
Referenced by add_abbrev_prefix_cmd(), add_alias_cmd(), add_basic_prefix_cmd(), add_prefix_cmd(), add_prefix_cmd_suppress_notification(), add_show_prefix_cmd(), cmdpy_init(), complete_line_internal_1(), define_prefix_command(), do_define_command(), execute_command(), gdbscm_register_command_x(), and lookup_cmd().
unsigned int cmd_list_element::cmd_deprecated |
Definition at line 124 of file cli-decode.h.
Referenced by complete_on_cmdlist(), deprecate_cmd(), deprecated_cmd_warning(), help_cmd_list(), and maintenance_do_deprecate().
completer_ftype* cmd_list_element::completer = symbol_completer |
Definition at line 220 of file cli-decode.h.
Referenced by add_catch_command(), add_dump_command(), add_target(), cmdpy_completer_handle_brkchars(), complete_line_internal_normal_command(), and set_cmd_completer().
completer_handle_brkchars_ftype* cmd_list_element::completer_handle_brkchars = nullptr |
Definition at line 228 of file cli-decode.h.
Referenced by complete_line_internal_normal_command(), and set_cmd_completer_handle_brkchars().
std::string cmd_list_element::default_args |
Definition at line 210 of file cli-decode.h.
Referenced by alias_command(), execute_command(), fput_alias_definition_styled(), lookup_cmd(), lookup_cmd_1(), and print_help_for_command().
unsigned int cmd_list_element::deprecated_warn_user |
Definition at line 130 of file cli-decode.h.
Referenced by deprecate_cmd(), deprecated_cmd_warning(), execute_command(), lookup_cmd_1(), and maintenance_do_deprecate().
void(* cmd_list_element::destroyer) (struct cmd_list_element *self, void *context) = nullptr |
Definition at line 233 of file cli-decode.h.
Referenced by add_layout_command(), cmdpy_init(), delete_cmd(), and gdbscm_register_command_x().
const char* cmd_list_element::doc |
Definition at line 193 of file cli-decode.h.
Referenced by add_abbrev_prefix_cmd(), add_alias_cmd(), add_basic_prefix_cmd(), add_cmd(), add_cmd(), add_cmd_suppress_notification(), add_com(), add_com_suppress_notification(), add_dump_command(), add_info(), add_layout_command(), add_prefix_cmd(), add_prefix_cmd_suppress_notification(), add_set_or_show_cmd(), add_show_prefix_cmd(), apropos_cmd(), selftests::help_doc_tests::check_doc(), deprecated_show_value_hack(), do_add_cmd(), do_define_command(), do_document_command(), gdbscm_make_command(), help_cmd(), parmpy_init(), print_doc_of_command(), print_help_for_command(), set_verbose(), and ~cmd_list_element().
unsigned int cmd_list_element::doc_allocated |
Definition at line 145 of file cli-decode.h.
Referenced by add_alias_cmd(), add_internal_function(), add_layout_command(), add_setshow_cmd_full_erased(), cmdpy_init(), do_document_command(), set_verbose(), and ~cmd_list_element().
const char* const* cmd_list_element::enums = nullptr |
Definition at line 240 of file cli-decode.h.
Referenced by add_setshow_auto_boolean_cmd(), add_setshow_boolean_cmd(), add_setshow_enum_cmd(), complete_line_internal_1(), and do_set_command().
cmd_func_ftype* cmd_list_element::func |
Definition at line 175 of file cli-decode.h.
Referenced by gdb.dap.scopes._ScopeReference::__init__(), add_alias_cmd(), add_basic_prefix_cmd(), add_catch_command(), add_cmd(), add_deprecated_target_alias(), add_dump_command(), add_layout_command(), add_set_or_show_cmd(), add_setshow_cmd_full_erased(), add_show_prefix_cmd(), add_target(), cli_user_command_p(), cmd_func(), cmd_simple_func_eq(), cmdpy_init(), do_set_command(), do_show_command(), gdbscm_register_command_x(), is_command_class_help(), and set_cmd_simple_func().
union { ... } cmd_list_element::function |
Referenced by add_alias_cmd(), add_cmd(), cmd_list_element(), cmd_simple_func_eq(), do_simple_func(), and set_cmd_simple_func().
unsigned int cmd_list_element::hook_in |
Definition at line 153 of file cli-decode.h.
Referenced by execute_cmd_post_hook(), execute_cmd_pre_hook(), and scoped_restore_hook_in::~scoped_restore_hook_in().
struct cmd_list_element* cmd_list_element::hook_post = nullptr |
Definition at line 206 of file cli-decode.h.
Referenced by delete_cmd(), do_add_cmd(), do_define_command(), execute_cmd_post_hook(), and help_cmd().
struct cmd_list_element* cmd_list_element::hook_pre = nullptr |
Definition at line 203 of file cli-decode.h.
Referenced by delete_cmd(), do_add_cmd(), do_define_command(), execute_cmd_pre_hook(), and help_cmd().
struct cmd_list_element* cmd_list_element::hookee_post = nullptr |
Definition at line 251 of file cli-decode.h.
Referenced by delete_cmd(), do_add_cmd(), and do_define_command().
struct cmd_list_element* cmd_list_element::hookee_pre = nullptr |
Definition at line 247 of file cli-decode.h.
Referenced by delete_cmd(), do_add_cmd(), and do_define_command().
|
private |
Definition at line 275 of file cli-decode.h.
Referenced by context(), and set_context().
unsigned int cmd_list_element::malloced_replacement |
Definition at line 141 of file cli-decode.h.
Referenced by maintenance_do_deprecate().
const char* cmd_list_element::name |
Definition at line 116 of file cli-decode.h.
Referenced by gdb.printing.FlagEnumerationPrinter::__call__(), gdb.dap.varref.BaseReference::__init__(), gdb.disassembler.Disassembler::__init__(), gdb.printing.SubPrettyPrinter::__init__(), gdb.types.TypePrinter::__init__(), gdb.xmethod.XMethod::__init__(), gdb.xmethod.XMethodMatcher::__init__(), gdb.printing.PrettyPrinter::__init__(), alias_command(), apropos_cmd(), selftests::help_doc_tests::check_doc(), cmd_show_list(), command_components(), complete_on_cmdlist(), delete_cmd(), deprecated_cmd_warning(), do_add_cmd(), do_define_command(), do_set_command(), find_cmd(), fput_command_name_styled(), help_all(), help_cmd(), info_auto_load_cmd(), lookup_cmd(), lookup_cmd_exact(), prefixname(), set_remote_protocol_packet_cmd(), show_remote_cmd(), show_remote_protocol_packet_cmd(), show_riscv_debug_variable(), show_user(), show_user_1(), gdb.dap.varref.BaseReference::to_object(), selftests::command_structure_tests::traverse_command_structure(), and ~cmd_list_element().
unsigned int cmd_list_element::name_allocated |
Definition at line 149 of file cli-decode.h.
Referenced by add_internal_function(), cmdpy_init(), tui_new_layout_command(), and ~cmd_list_element().
struct cmd_list_element* cmd_list_element::next = nullptr |
Definition at line 113 of file cli-decode.h.
Referenced by apropos_cmd(), selftests::help_doc_tests::check_doc(), cmd_show_list(), complete_on_cmdlist(), delete_cmd(), do_add_cmd(), find_cmd(), help_all(), help_cmd_list(), info_auto_load_cmd(), lookup_cmd(), lookup_cmd_with_subcommands(), set_auto_load_cmd(), set_per_command_cmd(), show_remote_cmd(), show_user(), show_user_1(), show_user_completer(), and selftests::command_structure_tests::traverse_command_structure().
struct cmd_list_element* cmd_list_element::prefix = nullptr |
Definition at line 217 of file cli-decode.h.
Referenced by alias_command(), cmd_show_list(), command_components(), deprecated_cmd_warning(), do_add_cmd(), do_set_command(), fput_command_name_styled(), lookup_cmd_composition_1(), prefixname(), setting_cmd(), selftests::command_structure_tests::traverse_command_structure(), and update_prefix_field_of_prefixed_commands().
const char* cmd_list_element::replacement = nullptr |
Definition at line 200 of file cli-decode.h.
Referenced by deprecate_cmd(), deprecated_cmd_warning(), and maintenance_do_deprecate().
show_value_ftype* cmd_list_element::show_value_func = nullptr |
Definition at line 197 of file cli-decode.h.
Referenced by add_setshow_cmd_full_erased(), and do_show_command().
cmd_simple_func_ftype* cmd_list_element::simple_func |
Definition at line 185 of file cli-decode.h.
Referenced by add_cmd(), cmd_simple_func_eq(), do_simple_func(), and set_cmd_simple_func().
struct cmd_list_element** cmd_list_element::subcommands = nullptr |
Definition at line 214 of file cli-decode.h.
Referenced by add_abbrev_prefix_cmd(), add_alias_cmd(), add_basic_prefix_cmd(), add_prefix_cmd(), add_prefix_cmd_suppress_notification(), add_show_prefix_cmd(), alias_command(), apropos_cmd(), selftests::help_doc_tests::check_doc(), cmd_show_list(), complete_line_internal_1(), define_prefix_command(), do_define_command(), do_prefix_cmd(), do_set_command(), do_show_prefix_cmd(), execute_command(), gdbpy_parse_command_name(), gdbscm_parse_command_name(), has_user_subcmd(), help_cmd(), help_cmd_list(), is_prefix(), lookup_cmd(), lookup_cmd_1(), lookup_cmd_composition_1(), lookup_cmd_with_subcommands(), print_help_for_command(), show_user_1(), show_user_completer(), selftests::command_structure_tests::traverse_command_structure(), update_prefix_field_of_prefixed_commands(), and validate_comname().
bool* cmd_list_element::suppress_notification = nullptr |
Definition at line 271 of file cli-decode.h.
Referenced by add_cmd_suppress_notification(), add_com_suppress_notification(), add_prefix_cmd_suppress_notification(), and cmd_func().
enum command_class cmd_list_element::theclass |
Definition at line 119 of file cli-decode.h.
Referenced by add_abbrev_prefix_cmd(), add_alias_cmd(), add_basic_prefix_cmd(), add_cmd(), add_cmd(), add_cmd_suppress_notification(), add_com(), add_com_alias(), add_com_suppress_notification(), add_prefix_cmd(), add_prefix_cmd_suppress_notification(), add_set_or_show_cmd(), add_setshow_auto_boolean_cmd(), add_setshow_auto_boolean_cmd(), add_setshow_boolean_cmd(), add_setshow_boolean_cmd(), add_setshow_cmd_full(), add_setshow_cmd_full(), add_setshow_cmd_full_erased(), add_setshow_enum_cmd(), add_setshow_enum_cmd(), add_setshow_filename_cmd(), add_setshow_filename_cmd(), add_setshow_integer_cmd(), add_setshow_integer_cmd(), add_setshow_integer_cmd(), add_setshow_integer_cmd(), add_setshow_optional_filename_cmd(), add_setshow_optional_filename_cmd(), add_setshow_pinteger_cmd(), add_setshow_pinteger_cmd(), add_setshow_prefix_cmd(), add_setshow_string_cmd(), add_setshow_string_cmd(), add_setshow_string_noescape_cmd(), add_setshow_string_noescape_cmd(), add_setshow_uinteger_cmd(), add_setshow_uinteger_cmd(), add_setshow_uinteger_cmd(), add_setshow_uinteger_cmd(), add_setshow_zinteger_cmd(), add_setshow_zinteger_cmd(), add_setshow_zuinteger_cmd(), add_setshow_zuinteger_cmd(), add_setshow_zuinteger_unlimited_cmd(), add_setshow_zuinteger_unlimited_cmd(), add_show_prefix_cmd(), cli_user_command_p(), cmd_show_list(), define_prefix_command(), do_add_cmd(), do_define_command(), do_document_command(), execute_command(), help_all(), help_cmd(), help_cmd_list(), help_list(), notify_command_param_changed_p(), and show_user_1().
__extension__ enum cmd_types cmd_list_element::type |
Definition at line 168 of file cli-decode.h.
Referenced by add_set_or_show_cmd(), cmd_show_list(), do_set_command(), do_show_command(), execute_command(), gdb_internal_backtrace_set_cmd(), info_auto_load_cmd(), lookup_cmd(), set_auto_load_cmd(), set_per_command_cmd(), setting_cmd(), and show_remote_cmd().
counted_command_line cmd_list_element::user_commands |
Definition at line 243 of file cli-decode.h.
Referenced by define_prefix_command(), do_define_command(), execute_command(), execute_user_command(), and show_user_1().
gdb::optional<setting> cmd_list_element::var |
Definition at line 236 of file cli-decode.h.
Referenced by add_set_or_show_cmd(), add_setshow_auto_boolean_cmd(), add_setshow_boolean_cmd(), add_setshow_cmd_full(), add_setshow_cmd_full(), add_setshow_enum_cmd(), add_setshow_filename_cmd(), add_setshow_integer_cmd(), add_setshow_integer_cmd(), add_setshow_optional_filename_cmd(), add_setshow_pinteger_cmd(), add_setshow_string_cmd(), add_setshow_string_noescape_cmd(), add_setshow_uinteger_cmd(), add_setshow_uinteger_cmd(), add_setshow_zinteger_cmd(), add_setshow_zuinteger_cmd(), add_setshow_zuinteger_unlimited_cmd(), deprecated_show_value_hack(), do_set_command(), do_show_command(), gdb_internal_backtrace_set_cmd(), gdbscm_parameter_value(), get_setshow_command_value_string(), init_history(), integer_literals_completer(), set_auto_load_cmd(), set_per_command_cmd(), set_remote_protocol_packet_cmd(), and show_remote_protocol_packet_cmd().