GDB (xrefs)

Functions | Variables
/tmp/gdb-8.1/gdb/gdbcmd.h File Reference
`#include "command.h"`
`#include "ui-out.h"`
`#include "cli/cli-script.h"`

Go to the source code of this file.

## Functions
void | execute_command (const char *, int)
std::string | execute_command_to_string (const char *p, int from_tty)
enum command_control_type | execute_control_command (struct command_line *)
void | print_command_line (struct command_line *, unsigned int, struct ui_file *)
void | print_command_lines (struct ui_out *, struct command_line *, unsigned int)

## Variables
struct cmd_list_element * | cmdlist
struct cmd_list_element * | infolist
struct cmd_list_element * | enablelist
struct cmd_list_element * | disablelist
struct cmd_list_element * | deletelist
struct cmd_list_element * | detachlist
struct cmd_list_element * | killlist
struct cmd_list_element * | stoplist
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 * | maintenance_set_cmdlist
struct cmd_list_element * | maintenance_show_cmdlist
struct cmd_list_element * | setprintlist
struct cmd_list_element * | showprintlist
struct cmd_list_element * | setprintrawlist
struct cmd_list_element * | showprintrawlist
struct cmd_list_element * | setprinttypelist
struct cmd_list_element * | showprinttypelist
struct cmd_list_element * | setdebuglist
struct cmd_list_element * | showdebuglist
struct cmd_list_element * | setchecklist
struct cmd_list_element * | showchecklist
struct cmd_list_element * | save_cmdlist

## Function Documentation

## ◆ execute_command()

void execute_command | ( | const char * | ,
|  | int |
| ) |  |

Definition at line 540 of file top.c.

Referenced by captured_main_1(), cmd_record_btrace_bts_start(), cmd_record_btrace_pt_start(), cmd_record_btrace_start(), cmd_record_full_start(), cmd_record_start(), command_handler(), command_line_handler(), env_execute_cli_command(), eval_command(), exec_reverse_once(), execute_control_command_1(), execute_gdb_command(), mi_execute_async_cli_command(), mi_execute_cli_command(), nto_init_solib_absolute_prefix(), safe_execute_command(), thread_apply_all_command(), thread_apply_command(), and tui_update_command().

## ◆ execute_command_to_string()

std::string execute_command_to_string | ( | const char * | p,
|  | int | from_tty
| ) |  |

Definition at line 655 of file top.c.

References ui::async, current_ui, current_uiout, execute_command(), gdb_stderr, gdb_stdlog, gdb_stdout, gdb_stdtarg, gdb_stdtargerr, make_scoped_restore(), and string_file::string().

Referenced by execute_gdb_command(), record_start(), and record_stop().

## ◆ execute_control_command()

enum command_control_type execute_control_command | ( | struct command_line * |  | ) |

Definition at line 650 of file cli-script.c.

References current_ui, current_uiout, execute_control_command_1(), INTERP_CONSOLE, interp_lookup(), interp_ui_out(), and make_scoped_restore().

Referenced by bpstat_do_actions_1(), execute_control_command_untraced(), and execute_user_command().

## ◆ print_command_line()

void print_command_line | ( | struct command_line * | ,
|  | unsigned | int,
|  | struct ui_file * |
| ) |  |

## ◆ print_command_lines()

void print_command_lines | ( | struct ui_out * | ,
|  | struct command_line * | ,
|  | unsigned | int
| ) |  |

Definition at line 189 of file cli-script.c.

References command_line::body_count, command_line::body_list, break_control, commands_control, compile_control, continue_control, command_line::control_type, ui_out::field_fmt(), ui_out::field_string(), guile_control, if_control, command_line::line, command_line::next, print_command_lines(), python_control, simple_control, ui_out::spaces(), ui_out::text(), while_control, and while_stepping_control.

Referenced by bppy_get_commands(), gdbscm_breakpoint_commands(), print_command_lines(), print_one_breakpoint_location(), save_breakpoints(), and show_user_1().

## 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().

## ◆ maintenance_set_cmdlist

struct cmd_list_element* maintenance_set_cmdlist

Definition at line 634 of file maint.c.

Referenced by _initialize_ada_language(), _initialize_btrace(), _initialize_cp_support(), _initialize_dwarf2_read(), _initialize_gdb_bfd(), _initialize_maint_cmds(), _initialize_mips_linux_nat(), _initialize_s390_nat(), _initialize_symtab(), _initialize_windows_tdep(), add_internal_problem_command(), add_show_debug_regs_command(), initialize_targets(), and maintenance_set_cmd().

## ◆ maintenance_show_cmdlist

struct cmd_list_element* maintenance_show_cmdlist

Definition at line 635 of file maint.c.

Referenced by _initialize_ada_language(), _initialize_btrace(), _initialize_cp_support(), _initialize_dwarf2_read(), _initialize_gdb_bfd(), _initialize_maint_cmds(), _initialize_mips_linux_nat(), _initialize_s390_nat(), _initialize_symtab(), _initialize_windows_tdep(), add_internal_problem_command(), add_show_debug_regs_command(), initialize_targets(), and maintenance_show_cmd().

## ◆ 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().

## ◆ save_cmdlist

struct cmd_list_element* save_cmdlist

Referenced by _initialize_breakpoint(), _initialize_dwarf2_read(), and save_command().

## ◆ 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().

## ◆ setprintrawlist

struct cmd_list_element* setprintrawlist

Definition at line 77 of file valprint.c.

Referenced by _initialize_stack(), _initialize_valprint(), and set_print_raw().

## ◆ setprinttypelist

struct cmd_list_element* setprinttypelist

Definition at line 681 of file typeprint.c.

Referenced by _initialize_typeprint().

## ◆ 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().

## ◆ showprintrawlist

struct cmd_list_element* showprintrawlist

Definition at line 78 of file valprint.c.

Referenced by _initialize_stack(), _initialize_valprint(), and show_print_raw().

## ◆ showprinttypelist

struct cmd_list_element* showprinttypelist

Definition at line 683 of file typeprint.c.

Referenced by _initialize_typeprint(), and show_print_type().

## ◆ stoplist

struct cmd_list_element* stoplist

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

Referenced by _initialize_breakpoint().

## ◆ 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().