GDB (xrefs)

Public Attributes | List of all members
cmd_list_element Struct Reference

`#include "cli-decode.h"`

## Public Attributes
struct cmd_list_element * | next
const char * | name
enum command_class | theclass
unsigned int | cmd_deprecated: 1
unsigned int | deprecated_warn_user: 1
unsigned int | malloced_replacement: 1
unsigned int | doc_allocated: 1
unsigned int | hook_in: 1
unsigned int | allow_unknown: 1
unsigned int | abbrev_flag: 1
__extension__ enum cmd_types | type: 2
__extension__ enum var_types | var_type: 4
void(* | func )(struct cmd_list_element *c, const char *args, int from_tty)
union {
cmd_const_cfunc_ftype * const_cfunc
cmd_const_sfunc_ftype * sfunc
} | function
void * | context
const char * | doc
show_value_ftype * | show_value_func
const char * | replacement
void(* | pre_show_hook )(struct cmd_list_element *c)
struct cmd_list_element * | hook_pre
struct cmd_list_element * | hook_post
struct cmd_list_element ** | prefixlist
const char * | prefixname
struct cmd_list_element * | prefix
completer_ftype * | completer
completer_handle_brkchars_ftype * | completer_handle_brkchars
void(* | destroyer )(struct cmd_list_element *self, void *context)
void * | var
const char *const * | enums
struct command_line * | user_commands
struct cmd_list_element * | hookee_pre
struct cmd_list_element * | hookee_post
struct cmd_list_element * | cmd_pointer
struct cmd_list_element * | aliases
struct cmd_list_element * | alias_chain
int * | suppress_notification

## Detailed Description

Definition at line 46 of file cli-decode.h.

## Member Data Documentation

## ◆ abbrev_flag

unsigned int cmd_list_element::abbrev_flag

Definition at line 96 of file cli-decode.h.

Referenced by add_abbrev_prefix_cmd(), add_alias_cmd(), add_com_alias(), add_info_alias(), alias_command(), apropos_cmd(), cmd_show_list(), complete_on_cmdlist(), do_add_cmd(), help_all(), help_cmd_list(), and print_help_for_command().

## ◆ alias_chain

struct cmd_list_element* cmd_list_element::alias_chain

Definition at line 206 of file cli-decode.h.

Referenced by add_alias_cmd(), delete_cmd(), and do_add_cmd().

## ◆ aliases

struct cmd_list_element* cmd_list_element::aliases

Definition at line 203 of file cli-decode.h.

Referenced by add_alias_cmd(), cleanup_check.MasterCleanup::compare_vars(), delete_cmd(), do_add_cmd(), and cleanup_check.MasterCleanup::note_assignment().

## ◆ allow_unknown

unsigned int cmd_list_element::allow_unknown

Definition at line 90 of file cli-decode.h.

Referenced by add_abbrev_prefix_cmd(), add_alias_cmd(), add_prefix_cmd(), cmdpy_init(), complete_line_internal_1(), do_add_cmd(), gdbscm_register_command_x(), and lookup_cmd().

## ◆ cmd_deprecated

unsigned int cmd_list_element::cmd_deprecated

Definition at line 60 of file cli-decode.h.

Referenced by complete_on_cmdlist(), deprecate_cmd(), deprecated_cmd_warning(), do_add_cmd(), help_cmd_list(), and maintenance_do_deprecate().

## ◆ cmd_pointer

struct cmd_list_element* cmd_list_element::cmd_pointer

Definition at line 200 of file cli-decode.h.

Referenced by add_alias_cmd(), delete_cmd(), do_add_cmd(), lookup_cmd_1(), lookup_cmd_composition(), and set_cmd_prefix().

## ◆ completer

completer_ftype* cmd_list_element::completer

Definition at line 164 of file cli-decode.h.

Referenced by _initialize_cli_cmds(), _initialize_cli_dump(), add_catch_command(), add_dump_command(), add_target_with_completer(), cmdpy_init(), complete_line_internal_normal_command(), and set_cmd_completer().

## ◆ completer_handle_brkchars

completer_handle_brkchars_ftype* cmd_list_element::completer_handle_brkchars

Definition at line 172 of file cli-decode.h.

Referenced by complete_line_internal_normal_command(), do_add_cmd(), and set_cmd_completer_handle_brkchars().

## ◆ const_cfunc

cmd_const_cfunc_ftype* cmd_list_element::const_cfunc

Definition at line 116 of file cli-decode.h.

Referenced by add_cmd(), cmd_cfunc_eq(), do_const_cfunc(), and set_cmd_cfunc().

## ◆ context

void* cmd_list_element::context

Definition at line 124 of file cli-decode.h.

Referenced by delete_cmd(), get_cmd_context(), and set_cmd_context().

## ◆ deprecated_warn_user

unsigned int cmd_list_element::deprecated_warn_user

Definition at line 66 of file cli-decode.h.

Referenced by deprecate_cmd(), deprecated_cmd_warning(), do_add_cmd(), execute_command(), lookup_cmd_1(), and maintenance_do_deprecate().

## ◆ destroyer

void(* cmd_list_element::destroyer) (struct cmd_list_element *self, void *context)

Definition at line 177 of file cli-decode.h.

Referenced by add_internal_function(), cmdpy_init(), delete_cmd(), do_add_cmd(), and gdbscm_register_command_x().

## ◆ doc

const char* cmd_list_element::doc

Definition at line 130 of file cli-decode.h.

Referenced by add_abbrev_prefix_cmd(), add_alias_cmd(), add_cmd(), add_com(), add_com_suppress_notification(), add_dump_command(), add_info(), add_prefix_cmd(), add_set_or_show_cmd(), apropos_cmd(), define_command(), delete_cmd(), deprecated_show_value_hack(), do_add_cmd(), document_command(), gdbscm_make_command(), gdbscm_make_parameter(), help_cmd(), parmpy_init(), print_help_for_command(), and set_verbose().

## ◆ doc_allocated

unsigned int cmd_list_element::doc_allocated

Definition at line 81 of file cli-decode.h.

Referenced by add_alias_cmd(), add_setshow_cmd_full(), delete_cmd(), and do_add_cmd().

## ◆ enums

const char* const* cmd_list_element::enums

Definition at line 185 of file cli-decode.h.

Referenced by add_setshow_auto_boolean_cmd(), add_setshow_boolean_cmd(), add_setshow_enum_cmd(), complete_line_internal_1(), do_add_cmd(), and do_set_command().

## ◆ func

void(* cmd_list_element::func) (struct cmd_list_element *c, const char *args, int from_tty)

Definition at line 110 of file cli-decode.h.

Referenced by add_alias_cmd(), add_cmd(), add_dump_command(), cli_user_command_p(), cmd_cfunc_eq(), cmd_func(), cmd_func_p(), cmdpy_init(), complete_on_cmdlist(), do_set_command(), do_show_command(), find_cmd(), gdbscm_register_command_x(), help_all(), help_cmd(), help_cmd_list(), set_cmd_cfunc(), and set_cmd_sfunc().

## ◆ function

union { ... } cmd_list_element::function

Referenced by add_alias_cmd(), add_cmd(), cmd_cfunc_eq(), do_const_cfunc(), do_sfunc(), set_cmd_cfunc(), and set_cmd_sfunc().

## ◆ hook_in

unsigned int cmd_list_element::hook_in

Definition at line 85 of file cli-decode.h.

Referenced by do_add_cmd(), execute_cmd_post_hook(), execute_cmd_pre_hook(), and scoped_restore_hook_in::~scoped_restore_hook_in().

## ◆ hook_post

struct cmd_list_element* cmd_list_element::hook_post

Definition at line 147 of file cli-decode.h.

Referenced by define_command(), delete_cmd(), do_add_cmd(), execute_cmd_post_hook(), and help_cmd().

## ◆ hook_pre

struct cmd_list_element* cmd_list_element::hook_pre

Definition at line 144 of file cli-decode.h.

Referenced by define_command(), delete_cmd(), do_add_cmd(), execute_cmd_pre_hook(), and help_cmd().

## ◆ hookee_post

struct cmd_list_element* cmd_list_element::hookee_post

Definition at line 196 of file cli-decode.h.

Referenced by define_command(), delete_cmd(), and do_add_cmd().

## ◆ hookee_pre

struct cmd_list_element* cmd_list_element::hookee_pre

Definition at line 192 of file cli-decode.h.

Referenced by define_command(), delete_cmd(), and do_add_cmd().

## ◆ malloced_replacement

unsigned int cmd_list_element::malloced_replacement

Definition at line 77 of file cli-decode.h.

Referenced by do_add_cmd(), and maintenance_do_deprecate().

## ◆ name

const char* cmd_list_element::name

Definition at line 52 of file cli-decode.h.

Referenced by gdb.printing.FlagEnumerationPrinter::__call__(), gdb.unwinder.Unwinder::__init__(), gdb.xmethod.XMethod::__init__(), gdb.printing.PrettyPrinter::__init__(), gdb.printing.SubPrettyPrinter::__init__(), gdb.xmethod.XMethodMatcher::__init__(), gdb.types.TypePrinter::__init__(), apropos_cmd(), cmd_show_list(), command_name_equals(), complete_on_cmdlist(), exsummary.Function::consistency_check(), define_command(), delete_cmd(), deprecated_cmd_warning(), do_add_cmd(), do_set_command(), find_cmd(), help_all(), help_cmd(), info_auto_load_cmd(), lookup_cmd(), print_help_for_command(), exsummary.Function::print_stack(), show_remote_cmd(), show_remote_protocol_packet_cmd(), show_user(), and show_user_1().

## ◆ next

struct cmd_list_element* cmd_list_element::next

Definition at line 49 of file cli-decode.h.

Referenced by gdb.FrameIterator.FrameIterator::__next__(), add_prefix_cmd(), apropos_cmd(), 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_for_prefixlist(), set_auto_load_cmd(), set_cmd_prefix(), set_per_command_cmd(), show_remote_cmd(), show_user(), and show_user_1().

## ◆ pre_show_hook

void(* cmd_list_element::pre_show_hook) (struct cmd_list_element *c)

Definition at line 141 of file cli-decode.h.

Referenced by do_add_cmd(), and do_show_command().

## ◆ prefix

struct cmd_list_element* cmd_list_element::prefix

Definition at line 161 of file cli-decode.h.

Referenced by add_prefix_cmd(), apropos_cmd(), do_add_cmd(), do_set_command(), gdbpy_parameter(), gdbscm_parameter_value(), help_cmd_list(), perror_string(), print_help_for_command(), set_cmd_prefix(), and validate_comname().

## ◆ prefixlist

struct cmd_list_element** cmd_list_element::prefixlist

Definition at line 151 of file cli-decode.h.

Referenced by add_abbrev_prefix_cmd(), add_alias_cmd(), add_prefix_cmd(), alias_command(), apropos_cmd(), cmd_show_list(), complete_line_internal_1(), complete_on_cmdlist(), do_add_cmd(), do_set_command(), gdbpy_parse_command_name(), gdbscm_parse_command_name(), help_cmd(), help_cmd_list(), info_auto_load_cmd(), lookup_cmd(), lookup_cmd_1(), lookup_cmd_composition(), lookup_cmd_for_prefixlist(), print_help_for_command(), show_user(), show_user_1(), and validate_comname().

## ◆ prefixname

const char* cmd_list_element::prefixname

Definition at line 158 of file cli-decode.h.

Referenced by add_abbrev_prefix_cmd(), add_alias_cmd(), add_prefix_cmd(), apropos_cmd(), cmd_show_list(), deprecated_cmd_warning(), do_add_cmd(), help_cmd(), help_cmd_list(), lookup_cmd(), print_help_for_command(), and show_user_1().

## ◆ replacement

const char* cmd_list_element::replacement

Definition at line 137 of file cli-decode.h.

Referenced by deprecate_cmd(), deprecated_cmd_warning(), do_add_cmd(), and maintenance_do_deprecate().

## ◆ sfunc

cmd_const_sfunc_ftype* cmd_list_element::sfunc

Definition at line 119 of file cli-decode.h.

Referenced by add_catch_command(), do_sfunc(), and set_cmd_sfunc().

## ◆ show_value_func

show_value_ftype* cmd_list_element::show_value_func

Definition at line 134 of file cli-decode.h.

Referenced by add_setshow_cmd_full(), and do_show_command().

## ◆ suppress_notification

int* cmd_list_element::suppress_notification

Definition at line 212 of file cli-decode.h.

Referenced by add_com_suppress_notification(), cmd_func(), and do_add_cmd().

## ◆ theclass

enum command_class cmd_list_element::theclass

Definition at line 55 of file cli-decode.h.

Referenced by add_abbrev_prefix_cmd(), add_alias_cmd(), add_cmd(), add_com(), add_com_alias(), add_com_suppress_notification(), add_prefix_cmd(), add_set_or_show_cmd(), add_setshow_auto_boolean_cmd(), add_setshow_boolean_cmd(), add_setshow_cmd_full(), add_setshow_enum_cmd(), add_setshow_filename_cmd(), add_setshow_integer_cmd(), add_setshow_optional_filename_cmd(), add_setshow_string_cmd(), add_setshow_string_noescape_cmd(), add_setshow_uinteger_cmd(), add_setshow_zinteger_cmd(), add_setshow_zuinteger_cmd(), add_setshow_zuinteger_unlimited_cmd(), cli_user_command_p(), cmd_show_list(), define_command(), do_add_cmd(), document_command(), execute_command(), help_all(), help_cmd(), help_cmd_list(), help_list(), notify_command_param_changed_p(), and show_user_1().

## ◆ type

__extension__ enum cmd_types cmd_list_element::type

Definition at line 100 of file cli-decode.h.

Referenced by add_set_or_show_cmd(), cmd_show_list(), cmd_type(), do_add_cmd(), do_set_command(), do_show_command(), execute_command(), info_auto_load_cmd(), lookup_cmd(), set_auto_load_cmd(), set_per_command_cmd(), and show_remote_cmd().

## ◆ user_commands

struct command_line* cmd_list_element::user_commands

Definition at line 188 of file cli-decode.h.

Referenced by define_command(), do_add_cmd(), execute_command(), execute_user_command(), and show_user_1().

## ◆ var

void* cmd_list_element::var

Definition at line 181 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_enum_cmd(), add_setshow_filename_cmd(), add_setshow_integer_cmd(), add_setshow_optional_filename_cmd(), add_setshow_string_cmd(), add_setshow_string_noescape_cmd(), add_setshow_uinteger_cmd(), add_setshow_zinteger_cmd(), add_setshow_zuinteger_cmd(), add_setshow_zuinteger_unlimited_cmd(), do_add_cmd(), do_set_command(), do_show_command(), gdbpy_parameter(), gdbscm_parameter_value(), init_history(), pascm_param_value(), pascm_set_param_value_x(), and show_remote_protocol_packet_cmd().

## ◆ var_type

__extension__ enum var_types cmd_list_element::var_type

Definition at line 103 of file cli-decode.h.

Referenced by add_set_or_show_cmd(), add_setshow_cmd_full(), deprecated_show_value_hack(), do_add_cmd(), do_set_command(), do_show_command(), gdbpy_parameter(), gdbscm_parameter_value(), set_auto_load_cmd(), and set_per_command_cmd().

The documentation for this struct was generated from the following file:

- /tmp/gdb-8.1/gdb/cli/cli-decode.h