GDB (xrefs)

Functions | Variables
cli-cmds.c File Reference
`#include "defs.h"`
`#include "arch-utils.h"`
`#include "readline/readline.h"`
`#include "readline/tilde.h"`
`#include "completer.h"`
`#include "target.h"`
`#include "gdb_wait.h"`
`#include "gdb_regex.h"`
`#include "gdb_vfork.h"`
`#include "linespec.h"`
`#include "expression.h"`
`#include "frame.h"`
`#include "value.h"`
`#include "language.h"`
`#include "filenames.h"`
`#include "objfiles.h"`
`#include "source.h"`
`#include "disasm.h"`
`#include "tracepoint.h"`
`#include "filestuff.h"`
`#include "location.h"`
`#include "ui-out.h"`
`#include "top.h"`
`#include "cli/cli-decode.h"`
`#include "cli/cli-script.h"`
`#include "cli/cli-setshow.h"`
`#include "cli/cli-cmds.h"`
`#include "cli/cli-utils.h"`
`#include "extension.h"`
`#include <fcntl.h>`
`#include <algorithm>`
`#include <string>`

Go to the source code of this file.

## Functions
static void | print_sal_location (const symtab_and_line &sal)
static void | ambiguous_line_spec (gdb::array_view< const symtab_and_line > sals, const char *format,...) ATTRIBUTE_PRINTF(2
static void static void | filter_sals (std::vector< symtab_and_line > &)
void | error_no_arg (const char *why)
static void | info_command (const char *arg, int from_tty)
static void | show_command (const char *arg, int from_tty)
static void | help_command (const char *command, int from_tty)
static void | complete_command (const char *arg, int from_tty)
int | is_complete_command (struct cmd_list_element *c)
static void | show_version (const char *args, int from_tty)
static void | show_configuration (const char *args, int from_tty)
void | quit_command (const char *args, int from_tty)
static void | pwd_command (const char *args, int from_tty)
void | cd_command (const char *dir, int from_tty)
static void | show_script_ext_mode (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
gdb::optional< open_script > | find_and_open_script (const char *script_file, int search_path)
static void | source_script_from_stream (FILE *stream, const char *file, const char *file_to_open)
static void | source_script_with_search (const char *file, int from_tty, int search_path)
void | source_script (const char *file, int from_tty)
static void | source_command (const char *args, int from_tty)
static void | echo_command (const char *text, int from_tty)
static void | shell_escape (const char *arg, int from_tty)
static void | shell_command (const char *arg, int from_tty)
static void | edit_command (const char *arg, int from_tty)
static void | list_command (const char *arg, int from_tty)
static void | print_disassembly (struct gdbarch *gdbarch, const char *name, CORE_ADDR low, CORE_ADDR high, gdb_disassembly_flags flags)
static void | disassemble_current_function (gdb_disassembly_flags flags)
static void | disassemble_command (const char *arg, int from_tty)
static void | make_command (const char *arg, int from_tty)
static void | show_user (const char *args, int from_tty)
static void | apropos_command (const char *searchstr, int from_tty)
static std::string | argv_to_string (char **argv, int n)
static int | valid_command_p (const char *command)
static void | alias_usage_error (void)
static void | alias_command (const char *args, int from_tty)
static int | cmp_symtabs (const symtab_and_line &sala, const symtab_and_line &salb)
static void | set_debug (const char *arg, int from_tty)
static void | show_debug (const char *args, int from_tty)
void | init_cmd_lists (void)
static void | show_info_verbose (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
static void | show_history_expansion_p (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
static void | show_remote_debug (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
static void | show_remote_timeout (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
static void | show_max_user_call_depth (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
void | _initialize_cli_cmds (void)
void | init_cli_cmds (void)

## Variables
unsigned int | max_user_call_depth
struct cmd_list_element * | cmdlist
struct cmd_list_element * | infolist
struct cmd_list_element * | enablelist
struct cmd_list_element * | disablelist
struct cmd_list_element * | stoplist
struct cmd_list_element * | deletelist
struct cmd_list_element * | detachlist
struct cmd_list_element * | killlist
struct cmd_list_element * | setlist
struct cmd_list_element * | unsetlist
struct cmd_list_element * | showlist
struct cmd_list_element * | sethistlist
struct cmd_list_element * | showhistlist
struct cmd_list_element * | unsethistlist
struct cmd_list_element * | maintenancelist
struct cmd_list_element * | maintenanceinfolist
struct cmd_list_element * | maintenanceprintlist
struct cmd_list_element * | maintenancechecklist
struct cmd_list_element * | setprintlist
struct cmd_list_element * | showprintlist
struct cmd_list_element * | setdebuglist
struct cmd_list_element * | showdebuglist
struct cmd_list_element * | setchecklist
struct cmd_list_element * | showchecklist
int | source_verbose = 0
int | trace_commands = 0
static const char | script_ext_off [] = "off"
static const char | script_ext_soft [] = "soft"
static const char | script_ext_strict [] = "strict"
static const char *const | script_ext_enums []
static const char * | script_ext_mode = script_ext_soft

## Function Documentation

## ◆ _initialize_cli_cmds()

void _initialize_cli_cmds | ( | void |  | ) |

Definition at line 1659 of file cli-cmds.c.

References _, add_cmd(), add_com(), add_com_alias(), add_info(), add_prefix_cmd(), add_setshow_boolean_cmd(), add_setshow_enum_cmd(), add_setshow_uinteger_cmd(), add_setshow_zinteger_cmd(), add_setshow_zuinteger_unlimited_cmd(), alias_command(), apropos_command(), cd_command(), class_alias, class_breakpoint, class_files, class_info, class_maintenance, class_obscure, class_run, class_stack, class_support, class_user, class_vars, cmdlist, command_completer(), complete_command(), cmd_list_element::completer, dbx_commands, disassemble_command(), echo_command(), edit_command(), filename_completer(), help_command(), history_expansion_p, info_command(), info_verbose, infolist, list_command(), location_completer(), make_command(), max_user_call_depth, no_class, no_set_class, pwd_command(), quit_command(), remote_debug, remote_timeout, script_ext_enums, script_ext_mode, set_cmd_completer(), set_debug(), set_history(), set_verbose(), setdebuglist, sethistlist, setlist, shell_command(), show_command(), show_commands(), show_configuration(), show_debug(), show_history(), show_history_expansion_p(), show_info_verbose(), show_max_user_call_depth(), show_remote_debug(), show_remote_timeout(), show_script_ext_mode(), show_user(), show_version(), showdebuglist, showhistlist, showlist, and trace_commands.

## ◆ alias_command()

static void alias_command | ( | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 1380 of file cli-cmds.c.

References _, cmd_list_element::abbrev_flag, add_alias_cmd(), add_com_alias(), alias, alias_usage_error(), argv_to_string(), class_alias, cmdlist, error(), gdb_assert, lookup_cmd_1(), cmd_list_element::prefixlist, string, valid_command_p(), and valid_user_defined_cmd_name_p().

Referenced by _initialize_cli_cmds().

## ◆ alias_usage_error()

static void alias_usage_error | ( | void |  | ) |
| static

Definition at line 1372 of file cli-cmds.c.

References _, and error().

Referenced by alias_command().

## ◆ ambiguous_line_spec()

static void ambiguous_line_spec | ( | gdb::array_view< const symtab_and_line > | sals,
|  | const char * | format,
|  |  | ...
| ) |  |
| static

Definition at line 1519 of file cli-cmds.c.

References print_sal_location(), and vprintf_filtered().

Referenced by edit_command(), and list_command().

## ◆ apropos_command()

static void apropos_command | ( | const char * | searchstr,
|  | int | from_tty
| ) |  |
| static

Definition at line 1311 of file cli-cmds.c.

References _, apropos_cmd(), cmdlist, error(), and gdb_stdout.

Referenced by _initialize_cli_cmds().

## ◆ argv_to_string()

static std::string argv_to_string | ( | char ** | argv,
|  | int | n
| ) |  |
| static

Definition at line 1330 of file cli-cmds.c.

References gdb::argv, gdb_assert, and string.

Referenced by alias_command().

## ◆ cd_command()

void cd_command | ( | const char * | dir,
|  | int | from_tty
| ) |  |

Definition at line 372 of file cli-cmds.c.

References current_directory, dont_repeat(), forget_cached_source_info(), perror_with_name(), pwd_command(), savestring(), SLASH_STRING, and xfree().

Referenced by _initialize_cli_cmds(), and captured_main_1().

## ◆ cmp_symtabs()

static int cmp_symtabs | ( | const symtab_and_line & | sala,
|  | const symtab_and_line & | salb
| ) |  |
| static

Definition at line 1535 of file cli-cmds.c.

References symtab::filename, symtab_and_line::line, symtab_and_line::symtab, and SYMTAB_DIRNAME.

Referenced by filter_sals().

## ◆ complete_command()

static void complete_command | ( | const char * | arg,
|  | int | from_tty
| ) |  |
| static

Definition at line 225 of file cli-cmds.c.

References _, completion_tracker::build_completion_result(), CATCH, complete_line(), completion_find_completion_word(), current_uiout, dont_repeat(), END_CATCH, get_max_completions_reached_message(), completion_result::match_list, max_completions, completion_result::number_matches, printf_unfiltered(), RETURN_MASK_ALL, completion_result::sort_match_list(), string, TRY, and completion_tracker::use_custom_word_point().

Referenced by _initialize_cli_cmds(), and is_complete_command().

## ◆ disassemble_command()

static void disassemble_command | ( | const char * | arg,
|  | int | from_tty
| ) |  |
| static

Definition at line 1180 of file cli-cmds.c.

References _, disassemble_current_function(), DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_RAW_INSN, DISASSEMBLY_SOURCE, DISASSEMBLY_SOURCE_DEPRECATED, error(), find_pc_partial_function(), flags, gdbarch_deprecated_function_start_offset(), get_current_arch(), name, parse_and_eval_address(), parse_to_comma_and_eval(), print_disassembly(), skip_spaces(), tui_active, tui_get_low_disassembly_address(), and value_as_address().

Referenced by _initialize_cli_cmds().

## ◆ disassemble_current_function()

static void disassemble_current_function | ( | gdb_disassembly_flags | flags | ) |
| static

Definition at line 1131 of file cli-cmds.c.

References _, error(), find_pc_partial_function(), flags, gdbarch_deprecated_function_start_offset(), get_frame_address_in_block(), get_frame_arch(), get_selected_frame(), name, print_disassembly(), tui_active, and tui_get_low_disassembly_address().

Referenced by disassemble_command().

## ◆ echo_command()

static void echo_command | ( | const char * | text,
|  | int | from_tty
| ) |  |
| static

Definition at line 668 of file cli-cmds.c.

References gdb_flush(), gdb_stdout, get_current_arch(), parse_escape(), printf_filtered(), and wrap_here().

Referenced by _initialize_cli_cmds().

## ◆ edit_command()

static void edit_command | ( | const char * | arg,
|  | int | from_tty
| ) |  |
| static

Definition at line 766 of file cli-cmds.c.

References _, ambiguous_line_spec(), current_language, decode_line_1(), DECODE_LINE_LIST_MODE, error(), filter_sals(), find_pc_function(), get_current_arch(), get_current_source_symtab_and_line(), get_lines_to_list(), get_objfile_arch(), symtab_and_line::line, paddress(), symtab_and_line::pc, printf_filtered(), set_default_source_symtab_and_line(), shell_escape(), string_to_event_location(), SYMBOL_PRINT_NAME, symtab_and_line::symtab, SYMTAB_OBJFILE, symtab_to_filename_for_display(), symtab_to_fullname(), xfree(), and xstrprintf().

Referenced by _initialize_cli_cmds().

## ◆ error_no_arg()

void error_no_arg | ( | const char * | why | ) |

Definition at line 185 of file cli-cmds.c.

References _, and error().

Referenced by adi_assign_command(), advance_command(), agent_command_1(), bsd_kvm_pcb_cmd(), bsd_kvm_proc_cmd(), condition_command(), decode_line_2(), do_set_command(), enable_count_command(), gdbsim_load(), generic_load(), get_selections(), go32_pte_for_address(), handle_command(), ignore_command(), info_symbol_command(), interpreter_exec_cmd(), jump_command(), maint_agent_printf_command(), map_breakpoint_numbers(), map_display_numbers(), mem_command(), parse_exp_in_context_1(), parse_pid_to_attach(), pipe_windows_open(), proc_trace_syscalls(), queue_signal_command(), remote_delete_command(), remote_get_command(), remote_put_command(), set_environment_command(), signal_command(), trace_variable_command(), tsave_command(), ui_printf(), validate_comname(), and x_command().

## ◆ filter_sals()

static void filter_sals | ( | std::vector< symtab_and_line > & | sals | ) |
| static

Definition at line 1571 of file cli-cmds.c.

References cmp_symtabs(), and current_program_space.

Referenced by edit_command(), and list_command().

## ◆ find_and_open_script()

gdb::optional<open_script> find_and_open_script | ( | const char * | script_file,
|  | int | search_path
| ) |  |

Definition at line 496 of file cli-cmds.c.

References gdb::optional< T >::emplace(), openp(), OPF_RETURN_REALPATH, OPF_SEARCH_IN_PATH, OPF_TRY_CWD_FIRST, and source_path.

Referenced by source_script_file(), and source_script_with_search().

## ◆ help_command()

static void help_command | ( | const char * | command,
|  | int | from_tty
| ) |  |
| static

Definition at line 215 of file cli-cmds.c.

References gdb_stdout, and help_cmd().

Referenced by _initialize_cli_cmds().

## ◆ info_command()

static void info_command | ( | const char * | arg,
|  | int | from_tty
| ) |  |
| static

Definition at line 195 of file cli-cmds.c.

References _, all_commands, gdb_stdout, help_list(), infolist, and printf_unfiltered().

Referenced by _initialize_cli_cmds().

## ◆ init_cli_cmds()

void init_cli_cmds | ( | void |  | ) |

Definition at line 1933 of file cli-cmds.c.

References _, add_cmd(), class_support, cmdlist, filename_completer(), gdbinit, set_cmd_completer(), source_command(), and xstrprintf().

Referenced by gdb_init().

## ◆ init_cmd_lists()

void init_cmd_lists | ( | void |  | ) |

Definition at line 1606 of file cli-cmds.c.

References max_user_call_depth.

Referenced by gdb_init().

## ◆ is_complete_command()

int is_complete_command | ( | struct cmd_list_element * | c | ) |

Definition at line 310 of file cli-cmds.c.

References cmd_cfunc_eq(), and complete_command().

Referenced by execute_command().

## ◆ list_command()

static void list_command | ( | const char * | arg,
|  | int | from_tty
| ) |  |
| static

Definition at line 866 of file cli-cmds.c.

References _, ambiguous_line_spec(), current_language, decode_line_1(), DECODE_LINE_LIST_MODE, error(), filter_sals(), find_pc_function(), get_current_arch(), get_current_source_symtab_and_line(), get_first_line_listed(), get_lines_to_list(), get_objfile_arch(), have_full_symbols(), have_partial_symbols(), symtab_and_line::line, paddress(), symtab_and_line::pc, print_sal_location(), print_source_lines(), printf_filtered(), set_default_source_symtab_and_line(), set_repeat_arguments(), string_to_event_location(), SYMBOL_PRINT_NAME, symtab_and_line::symtab, SYMTAB_OBJFILE, and symtab_to_filename_for_display().

Referenced by _initialize_cli_cmds().

## ◆ make_command()

static void make_command | ( | const char * | arg,
|  | int | from_tty
| ) |  |
| static

Definition at line 1270 of file cli-cmds.c.

References shell_escape(), and string.

Referenced by _initialize_cli_cmds().

## ◆ print_disassembly()

static void print_disassembly | ( | struct gdbarch * | gdbarch,
|  | const char * | name,
|  | CORE_ADDR | low,
|  | CORE_ADDR | high,
|  | gdb_disassembly_flags | flags
| ) |  |
| static

Definition at line 1098 of file cli-cmds.c.

References current_uiout, DISASSEM_WIN, flags, gdb_disassembly(), gdb_flush(), gdb_stdout, name, paddress(), printf_filtered(), tui_is_window_visible(), and tui_show_assembly().

Referenced by disassemble_command(), and disassemble_current_function().

## ◆ print_sal_location()

static void print_sal_location | ( | const symtab_and_line & | sal | ) |
| static

Definition at line 1498 of file cli-cmds.c.

References _, symtab_and_line::line, printf_filtered(), symtab_and_line::pspace, set_current_program_space(), symtab_and_line::symbol, SYMBOL_PRINT_NAME, symtab_and_line::symtab, and symtab_to_filename_for_display().

Referenced by ambiguous_line_spec(), and list_command().

## ◆ pwd_command()

static void pwd_command | ( | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 353 of file cli-cmds.c.

References _, current_directory, error(), printf_unfiltered(), and safe_strerror().

Referenced by _initialize_cli_cmds(), and cd_command().

## ◆ quit_command()

void quit_command | ( | const char * | args,
|  | int | from_tty
| ) |  |

Definition at line 331 of file cli-cmds.c.

References _, error(), parse_and_eval(), query_if_trace_running(), quit_confirm(), quit_force(), and value_as_long().

Referenced by _initialize_cli_cmds(), captured_command_loop(), and stdin_event_handler().

## ◆ set_debug()

static void set_debug | ( | const char * | arg,
|  | int | from_tty
| ) |  |
| static

Definition at line 1592 of file cli-cmds.c.

References _, all_commands, gdb_stdout, help_list(), printf_unfiltered(), and setdebuglist.

Referenced by _initialize_cli_cmds().

## ◆ shell_command()

static void shell_command | ( | const char * | arg,
|  | int | from_tty
| ) |  |
| static

Definition at line 760 of file cli-cmds.c.

References shell_escape().

Referenced by _initialize_cli_cmds(), and execv_argv::init_for_shell().

## ◆ shell_escape()

static void shell_escape | ( | const char * | arg,
|  | int | from_tty
| ) |  |
| static

Definition at line 697 of file cli-cmds.c.

References _, close_most_fds(), current_directory, error(), fprintf_unfiltered(), gdb_flush(), gdb_stderr, pid, safe_strerror(), and status.

Referenced by edit_command(), make_command(), and shell_command().

## ◆ show_command()

static void show_command | ( | const char * | arg,
|  | int | from_tty
| ) |  |
| static

Definition at line 205 of file cli-cmds.c.

References cmd_show_list(), and showlist.

Referenced by _initialize_cli_cmds().

## ◆ show_configuration()

static void show_configuration | ( | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 323 of file cli-cmds.c.

References gdb_stdout, and print_gdb_configuration().

Referenced by _initialize_cli_cmds().

## ◆ show_debug()

static void show_debug | ( | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 1600 of file cli-cmds.c.

References cmd_show_list(), and showdebuglist.

Referenced by _initialize_cli_cmds().

## ◆ show_history_expansion_p()

static void show_history_expansion_p | ( | struct ui_file * | file,
|  | int | from_tty,
|  | struct cmd_list_element * | c,
|  | const char * | value
| ) |  |
| static

Definition at line 1625 of file cli-cmds.c.

References _, and fprintf_filtered().

Referenced by _initialize_cli_cmds().

## ◆ show_info_verbose()

static void show_info_verbose | ( | struct ui_file * | file,
|  | int | from_tty,
|  | struct cmd_list_element * | c,
|  | const char * | value
| ) |  |
| static

Definition at line 1612 of file cli-cmds.c.

References _, fprintf_filtered(), and info_verbose.

Referenced by _initialize_cli_cmds().

## ◆ show_max_user_call_depth()

static void show_max_user_call_depth | ( | struct ui_file * | file,
|  | int | from_tty,
|  | struct cmd_list_element * | c,
|  | const char * | value
| ) |  |
| static

Definition at line 1650 of file cli-cmds.c.

References _, and fprintf_filtered().

Referenced by _initialize_cli_cmds().

## ◆ show_remote_debug()

static void show_remote_debug | ( | struct ui_file * | file,
|  | int | from_tty,
|  | struct cmd_list_element * | c,
|  | const char * | value
| ) |  |
| static

Definition at line 1633 of file cli-cmds.c.

References _, and fprintf_filtered().

Referenced by _initialize_cli_cmds().

## ◆ show_remote_timeout()

static void show_remote_timeout | ( | struct ui_file * | file,
|  | int | from_tty,
|  | struct cmd_list_element * | c,
|  | const char * | value
| ) |  |
| static

Definition at line 1641 of file cli-cmds.c.

References _, and fprintf_filtered().

Referenced by _initialize_cli_cmds().

## ◆ show_script_ext_mode()

static void show_script_ext_mode | ( | struct ui_file * | file,
|  | int | from_tty,
|  | struct cmd_list_element * | c,
|  | const char * | value
| ) |  |
| static

Definition at line 478 of file cli-cmds.c.

References _, and fprintf_filtered().

Referenced by _initialize_cli_cmds().

## ◆ show_user()

static void show_user | ( | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 1283 of file cli-cmds.c.

References _, cli_user_command_p(), cmdlist, error(), gdb_stdout, lookup_cmd(), cmd_list_element::name, cmd_list_element::next, cmd_list_element::prefixlist, and show_user_1().

Referenced by _initialize_cli_cmds().

## ◆ show_version()

static void show_version | ( | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 316 of file cli-cmds.c.

References gdb_stdout, print_gdb_version(), and printf_filtered().

Referenced by _initialize_cli_cmds().

## ◆ source_command()

static void source_command | ( | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 618 of file cli-cmds.c.

References make_scoped_restore(), skip_spaces(), source_script_with_search(), and source_verbose.

Referenced by init_cli_cmds().

## ◆ source_script()

void source_script | ( | const char * | file,
|  | int | from_tty
| ) |  |

Definition at line 612 of file cli-cmds.c.

References source_script_with_search().

Referenced by captured_main_1().

## ◆ source_script_from_stream()

static void source_script_from_stream | ( | FILE * | stream,
|  | const char * | file,
|  | const char * | file_to_open
| ) |  |
| static

Definition at line 539 of file cli-cmds.c.

References ext_lang_present_p(), ext_lang_script_sourcer(), gdb_assert, get_ext_lang_of_file(), script_ext_mode, script_ext_off, script_ext_soft, script_from_file(), and throw_ext_lang_unsupported().

Referenced by source_script_with_search().

## ◆ source_script_with_search()

static void source_script_with_search | ( | const char * | file,
|  | int | from_tty,
|  | int | search_path
| ) |  |
| static

Definition at line 577 of file cli-cmds.c.

References _, error(), find_and_open_script(), open_script::full_path, perror_warning_with_name(), perror_with_name(), source_script_from_stream(), and open_script::stream.

Referenced by source_command(), and source_script().

## ◆ valid_command_p()

static int valid_command_p | ( | const char * | command | ) |
| static

Definition at line 1352 of file cli-cmds.c.

References cmdlist, and lookup_cmd_1().

Referenced by alias_command().

## Variable Documentation

## ◆ cmdlist

struct cmd_list_element* cmdlist

Definition at line 79 of file cli-cmds.c.

Referenced by _initialize_auto_load(), _initialize_breakpoint(), _initialize_cli_cmds(), _initialize_cli_dump(), _initialize_compile(), _initialize_core(), _initialize_demangler(), _initialize_exec(), _initialize_infcmd(), _initialize_infrun(), _initialize_interpreter(), _initialize_macrocmd(), _initialize_maint_cmds(), _initialize_mem_search(), _initialize_printcmd(), _initialize_record(), _initialize_remote(), _initialize_source(), _initialize_sparc64_adi_tdep(), _initialize_step_skip(), _initialize_symfile(), _initialize_symfile_mem(), _initialize_tasks(), _initialize_thread(), _initialize_tracepoint(), _initialize_values(), add_com(), add_com_alias(), add_com_suppress_notification(), add_prefix_cmd(), add_target_with_completer(), alias_command(), apropos_command(), bsd_kvm_add_target(), cmdpy_init(), complete_line_internal_1(), encode_actions_1(), execute_command(), gdbscm_register_command_x(), help_all(), help_cmd(), init_cli_cmds(), init_main(), initialize_inferiors(), lookup_cmd_composition(), process_next_line(), show_user(), trace_dump_actions(), tui_get_cmd_list(), valid_command_p(), validate_actionline(), and validate_comname().

## ◆ deletelist

struct cmd_list_element* deletelist

Definition at line 99 of file cli-cmds.c.

Referenced by _initialize_breakpoint(), _initialize_linux_fork(), _initialize_mem(), _initialize_printcmd(), _initialize_reverse(), and _initialize_tracepoint().

## ◆ detachlist

struct cmd_list_element* detachlist

Definition at line 103 of file cli-cmds.c.

Referenced by _initialize_infcmd(), _initialize_linux_fork(), and initialize_inferiors().

## ◆ disablelist

struct cmd_list_element* disablelist

Definition at line 91 of file cli-cmds.c.

Referenced by _initialize_breakpoint(), _initialize_mem(), _initialize_printcmd(), and _initialize_probe().

## ◆ enablelist

struct cmd_list_element* enablelist

Definition at line 87 of file cli-cmds.c.

Referenced by _initialize_breakpoint(), _initialize_mem(), _initialize_printcmd(), and _initialize_probe().

## ◆ infolist

struct cmd_list_element* infolist

Definition at line 83 of file cli-cmds.c.

Referenced by _initialize_cli_cmds(), _initialize_go32_nat(), _initialize_infcmd(), _initialize_record(), _initialize_spu_tdep(), add_info(), add_info_alias(), auto_load_info_cmdlist_get(), info_command(), info_probes_cmdlist_get(), init_w32_command_list(), and install_gdb_commands().

## ◆ killlist

struct cmd_list_element* killlist

Definition at line 107 of file cli-cmds.c.

Referenced by _initialize_infcmd(), and initialize_inferiors().

## ◆ maintenancechecklist

struct cmd_list_element* maintenancechecklist

Definition at line 147 of file cli-cmds.c.

Referenced by _initialize_maint_cmds(), _initialize_target_descriptions(), and maintenance_check_command().

## ◆ maintenanceinfolist

struct cmd_list_element* maintenanceinfolist

Definition at line 139 of file cli-cmds.c.

Referenced by _initialize_breakpoint(), _initialize_btrace(), _initialize_gdb_bfd(), _initialize_maint_cmds(), _initialize_psymtab(), _initialize_sol_thread(), _initialize_symmisc(), initialize_progspace(), and maintenance_info_command().

## ◆ maintenancelist

struct cmd_list_element* maintenancelist

Definition at line 135 of file cli-cmds.c.

Referenced by _initialize_ax_gdb(), _initialize_btrace(), _initialize_cp_support(), _initialize_maint_cmds(), _initialize_psymtab(), _initialize_remote(), _initialize_symmisc(), _initialize_symtab(), and maintenance_command().

## ◆ maintenanceprintlist

struct cmd_list_element* maintenanceprintlist

Definition at line 143 of file cli-cmds.c.

Referenced by _initialize_arc_tdep(), _initialize_dummy_frame(), _initialize_hppa_tdep(), _initialize_maint_cmds(), _initialize_psymtab(), _initialize_regcache(), _initialize_reggroup(), _initialize_symmisc(), _initialize_symtab(), _initialize_target_descriptions(), _initialize_user_regs(), initialize_targets(), and maintenance_print_command().

## ◆ max_user_call_depth

unsigned int max_user_call_depth

Definition at line 73 of file cli-cmds.c.

Referenced by _initialize_cli_cmds(), execute_user_command(), and init_cmd_lists().

## ◆ script_ext_enums

const char* const script_ext_enums[]
| static

Initial value:
= {
script_ext_off,
script_ext_soft,
script_ext_strict,
NULL
}
script_ext_off
static const char script_ext_off[]
Definition: cli-cmds.c:168
script_ext_soft
static const char script_ext_soft[]
Definition: cli-cmds.c:169
script_ext_strict
static const char script_ext_strict[]
Definition: cli-cmds.c:170

Definition at line 172 of file cli-cmds.c.

Referenced by _initialize_cli_cmds().

## ◆ script_ext_mode

const char* script_ext_mode = script_ext_soft
| static

Definition at line 179 of file cli-cmds.c.

Referenced by _initialize_cli_cmds(), and source_script_from_stream().

## ◆ script_ext_off

const char script_ext_off[] = "off"
| static

Definition at line 168 of file cli-cmds.c.

Referenced by source_script_from_stream().

## ◆ script_ext_soft

const char script_ext_soft[] = "soft"
| static

Definition at line 169 of file cli-cmds.c.

Referenced by source_script_from_stream().

## ◆ script_ext_strict

const char script_ext_strict[] = "strict"
| static

Definition at line 170 of file cli-cmds.c.

## ◆ setchecklist

struct cmd_list_element* setchecklist

Definition at line 157 of file cli-cmds.c.

Referenced by _initialize_gdbtypes(), _initialize_language(), and set_check().

## ◆ setdebuglist

struct cmd_list_element* setdebuglist

Definition at line 153 of file cli-cmds.c.

Referenced by _initialize_aarch64_tdep(), _initialize_aix_thread(), _initialize_arc_tdep(), _initialize_arm_tdep(), _initialize_auto_load(), _initialize_cli_cmds(), _initialize_coff_pe_read(), _initialize_compile(), _initialize_darwin_inferior(), _initialize_dsbt_solib(), _initialize_dwarf2_read(), _initialize_dwarf2loc(), _initialize_fbsd_nat(), _initialize_frame(), _initialize_frv_solib(), _initialize_gdb_bfd(), _initialize_gdbarch(), _initialize_gdbtypes(), _initialize_gnu_nat(), _initialize_hppa_tdep(), _initialize_infrun(), _initialize_jit(), _initialize_linux_nat(), _initialize_machoread(), _initialize_microblaze_tdep(), _initialize_mips_tdep(), _initialize_nios2_tdep(), _initialize_notif(), _initialize_observer(), _initialize_or1k_tdep(), _initialize_parse(), _initialize_record(), _initialize_serial(), _initialize_solib_aix(), _initialize_stap_probe(), _initialize_symfile(), _initialize_symfile_debug(), _initialize_symtab(), _initialize_thread_db(), _initialize_varobj(), _initialize_xml_support(), _initialize_xtensa_tdep(), gdbpy_initialize_unwind(), initialize_targets(), initialize_utils(), and set_debug().

## ◆ sethistlist

struct cmd_list_element* sethistlist

Definition at line 123 of file cli-cmds.c.

Referenced by _initialize_cli_cmds(), init_main(), and set_history().

## ◆ setlist

struct cmd_list_element* setlist

Definition at line 111 of file cli-cmds.c.

Referenced by _initialize_ada_language(), _initialize_agent(), _initialize_alpha_tdep(), _initialize_arm_tdep(), _initialize_breakpoint(), _initialize_charset(), _initialize_cli_cmds(), _initialize_cli_logging(), _initialize_compile(), _initialize_complaints(), _initialize_completer(), _initialize_core(), _initialize_cp_abi(), _initialize_cris_tdep(), _initialize_darwin_inferior(), _initialize_dcache(), _initialize_demangler(), _initialize_disasm(), _initialize_dwarf2_read(), _initialize_exec(), _initialize_filesystem(), _initialize_fork_child(), _initialize_frame(), _initialize_gdb_osabi(), _initialize_gdbarch_utils(), _initialize_gdbtypes(), _initialize_i386_tdep(), _initialize_infcall(), _initialize_infcmd(), _initialize_infrun(), _initialize_language(), _initialize_linux_tdep(), _initialize_maint_cmds(), _initialize_mem(), _initialize_mi_main(), _initialize_mips_tdep(), _initialize_printcmd(), _initialize_proc_api(), _initialize_python(), _initialize_ravenscar(), _initialize_record(), _initialize_remote(), _initialize_rs6000_tdep(), _initialize_ser_dos(), _initialize_ser_hardwire(), _initialize_ser_tcp(), _initialize_serial(), _initialize_sh_tdep(), _initialize_solib(), _initialize_source(), _initialize_spu_tdep(), _initialize_stack(), _initialize_symfile(), _initialize_symtab(), _initialize_target_dcache(), _initialize_target_descriptions(), _initialize_thread_db(), _initialize_tracepoint(), _initialize_tui_win(), _initialize_valops(), _initialize_valprint(), _initialize_values(), _initialize_windows_nat(), add_set_language_command(), add_task_commands(), add_thread_commands(), auto_load_set_cmdlist_get(), do_set_command(), gdbpy_initialize_auto_load(), gdbscm_register_parameter_x(), init_main(), initialize_current_architecture(), initialize_targets(), initialize_utils(), install_gdb_commands(), parmpy_init(), and set_cmd_prefix().

## ◆ setprintlist

struct cmd_list_element* setprintlist

Definition at line 149 of file cli-cmds.c.

Referenced by _initialize_cp_valprint(), _initialize_demangler(), _initialize_pascal_valprint(), _initialize_printcmd(), _initialize_stack(), _initialize_symfile(), _initialize_thread(), _initialize_typeprint(), _initialize_valprint(), initialize_inferiors(), initialize_utils(), set_print(), and set_print_type().

## ◆ showchecklist

struct cmd_list_element* showchecklist

Definition at line 159 of file cli-cmds.c.

Referenced by _initialize_gdbtypes(), _initialize_language(), and show_check().

## ◆ showdebuglist

struct cmd_list_element* showdebuglist

Definition at line 155 of file cli-cmds.c.

Referenced by _initialize_aarch64_tdep(), _initialize_aix_thread(), _initialize_arc_tdep(), _initialize_arm_tdep(), _initialize_auto_load(), _initialize_cli_cmds(), _initialize_coff_pe_read(), _initialize_compile(), _initialize_darwin_inferior(), _initialize_dsbt_solib(), _initialize_dwarf2_read(), _initialize_dwarf2loc(), _initialize_fbsd_nat(), _initialize_frame(), _initialize_frv_solib(), _initialize_gdb_bfd(), _initialize_gdbarch(), _initialize_gdbtypes(), _initialize_gnu_nat(), _initialize_hppa_tdep(), _initialize_infrun(), _initialize_jit(), _initialize_linux_nat(), _initialize_machoread(), _initialize_microblaze_tdep(), _initialize_mips_tdep(), _initialize_nios2_tdep(), _initialize_notif(), _initialize_observer(), _initialize_or1k_tdep(), _initialize_parse(), _initialize_record(), _initialize_serial(), _initialize_solib_aix(), _initialize_stap_probe(), _initialize_symfile(), _initialize_symfile_debug(), _initialize_symtab(), _initialize_thread_db(), _initialize_varobj(), _initialize_xml_support(), _initialize_xtensa_tdep(), gdbpy_initialize_unwind(), initialize_targets(), initialize_utils(), and show_debug().

## ◆ showhistlist

struct cmd_list_element* showhistlist

Definition at line 127 of file cli-cmds.c.

Referenced by _initialize_cli_cmds(), init_main(), and show_history().

## ◆ showlist

struct cmd_list_element* showlist

Definition at line 119 of file cli-cmds.c.

Referenced by _initialize_ada_language(), _initialize_agent(), _initialize_alpha_tdep(), _initialize_arm_tdep(), _initialize_breakpoint(), _initialize_charset(), _initialize_cli_cmds(), _initialize_cli_logging(), _initialize_compile(), _initialize_complaints(), _initialize_completer(), _initialize_copying(), _initialize_core(), _initialize_cp_abi(), _initialize_cris_tdep(), _initialize_darwin_inferior(), _initialize_dcache(), _initialize_demangler(), _initialize_disasm(), _initialize_dwarf2_read(), _initialize_exec(), _initialize_filesystem(), _initialize_fork_child(), _initialize_frame(), _initialize_gdb_osabi(), _initialize_gdbarch_utils(), _initialize_gdbtypes(), _initialize_i386_tdep(), _initialize_infcall(), _initialize_infcmd(), _initialize_infrun(), _initialize_language(), _initialize_linux_tdep(), _initialize_maint_cmds(), _initialize_mem(), _initialize_mi_main(), _initialize_mips_tdep(), _initialize_proc_api(), _initialize_python(), _initialize_ravenscar(), _initialize_record(), _initialize_remote(), _initialize_rs6000_tdep(), _initialize_ser_dos(), _initialize_ser_hardwire(), _initialize_ser_tcp(), _initialize_serial(), _initialize_sh_tdep(), _initialize_solib(), _initialize_source(), _initialize_spu_tdep(), _initialize_stack(), _initialize_symfile(), _initialize_symtab(), _initialize_target_dcache(), _initialize_target_descriptions(), _initialize_thread_db(), _initialize_tracepoint(), _initialize_tui_win(), _initialize_valops(), _initialize_valprint(), _initialize_values(), _initialize_windows_nat(), add_set_language_command(), add_task_commands(), add_thread_commands(), auto_load_show_cmdlist_get(), gdbpy_initialize_auto_load(), gdbscm_register_parameter_x(), init_main(), initialize_current_architecture(), initialize_targets(), initialize_utils(), install_gdb_commands(), parmpy_init(), set_verbose(), and show_command().

## ◆ showprintlist

struct cmd_list_element* showprintlist

Definition at line 151 of file cli-cmds.c.

Referenced by _initialize_cp_valprint(), _initialize_demangler(), _initialize_pascal_valprint(), _initialize_printcmd(), _initialize_stack(), _initialize_symfile(), _initialize_thread(), _initialize_typeprint(), _initialize_valprint(), initialize_inferiors(), initialize_utils(), and show_print().

## ◆ source_verbose

int source_verbose = 0

Definition at line 163 of file cli-cmds.c.

Referenced by print_command_trace(), and source_command().

## ◆ stoplist

struct cmd_list_element* stoplist

Definition at line 95 of file cli-cmds.c.

Referenced by _initialize_breakpoint().

## ◆ trace_commands

int trace_commands = 0

Definition at line 164 of file cli-cmds.c.

Referenced by _initialize_cli_cmds(), and print_command_trace().

## ◆ unsethistlist

struct cmd_list_element* unsethistlist

Definition at line 131 of file cli-cmds.c.

## ◆ unsetlist

struct cmd_list_element* unsetlist

Definition at line 115 of file cli-cmds.c.

Referenced by _initialize_fork_child(), _initialize_infcmd(), _initialize_source(), _initialize_target_descriptions(), and unset_command().