GDB (API)
/home/stan/gdb/src/gdb/mi/mi-cmds.h
Go to the documentation of this file.
00001 /* MI Command Set for GDB, the GNU debugger.
00002 
00003    Copyright (C) 2000-2013 Free Software Foundation, Inc.
00004 
00005    Contributed by Cygnus Solutions (a Red Hat company).
00006 
00007    This file is part of GDB.
00008 
00009    This program is free software; you can redistribute it and/or modify
00010    it under the terms of the GNU General Public License as published by
00011    the Free Software Foundation; either version 3 of the License, or
00012    (at your option) any later version.
00013 
00014    This program is distributed in the hope that it will be useful,
00015    but WITHOUT ANY WARRANTY; without even the implied warranty of
00016    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017    GNU General Public License for more details.
00018 
00019    You should have received a copy of the GNU General Public License
00020    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00021 
00022 #ifndef MI_CMDS_H
00023 #define MI_CMDS_H
00024 
00025 enum print_values {
00026    PRINT_NO_VALUES,
00027    PRINT_ALL_VALUES,
00028    PRINT_SIMPLE_VALUES
00029 };
00030 
00031 typedef void (mi_cmd_argv_ftype) (char *command, char **argv, int argc);
00032 
00033 /* Declarations of the functions implementing each command.  */
00034 
00035 extern mi_cmd_argv_ftype mi_cmd_ada_task_info;
00036 extern mi_cmd_argv_ftype mi_cmd_add_inferior;
00037 extern mi_cmd_argv_ftype mi_cmd_break_insert;
00038 extern mi_cmd_argv_ftype mi_cmd_dprintf_insert;
00039 extern mi_cmd_argv_ftype mi_cmd_break_commands;
00040 extern mi_cmd_argv_ftype mi_cmd_break_passcount;
00041 extern mi_cmd_argv_ftype mi_cmd_break_watch;
00042 extern mi_cmd_argv_ftype mi_cmd_catch_assert;
00043 extern mi_cmd_argv_ftype mi_cmd_catch_exception;
00044 extern mi_cmd_argv_ftype mi_cmd_catch_load;
00045 extern mi_cmd_argv_ftype mi_cmd_catch_unload;
00046 extern mi_cmd_argv_ftype mi_cmd_disassemble;
00047 extern mi_cmd_argv_ftype mi_cmd_data_evaluate_expression;
00048 extern mi_cmd_argv_ftype mi_cmd_data_list_register_names;
00049 extern mi_cmd_argv_ftype mi_cmd_data_list_register_values;
00050 extern mi_cmd_argv_ftype mi_cmd_data_list_changed_registers;
00051 extern mi_cmd_argv_ftype mi_cmd_data_read_memory;
00052 extern mi_cmd_argv_ftype mi_cmd_data_read_memory_bytes;
00053 extern mi_cmd_argv_ftype mi_cmd_data_write_memory;
00054 extern mi_cmd_argv_ftype mi_cmd_data_write_memory_bytes;
00055 extern mi_cmd_argv_ftype mi_cmd_data_write_register_values;
00056 extern mi_cmd_argv_ftype mi_cmd_enable_timings;
00057 extern mi_cmd_argv_ftype mi_cmd_env_cd;
00058 extern mi_cmd_argv_ftype mi_cmd_env_dir;
00059 extern mi_cmd_argv_ftype mi_cmd_env_path;
00060 extern mi_cmd_argv_ftype mi_cmd_env_pwd;
00061 extern mi_cmd_argv_ftype mi_cmd_exec_continue;
00062 extern mi_cmd_argv_ftype mi_cmd_exec_finish;
00063 extern mi_cmd_argv_ftype mi_cmd_exec_interrupt;
00064 extern mi_cmd_argv_ftype mi_cmd_exec_jump;
00065 extern mi_cmd_argv_ftype mi_cmd_exec_next;
00066 extern mi_cmd_argv_ftype mi_cmd_exec_next_instruction;
00067 extern mi_cmd_argv_ftype mi_cmd_exec_return;
00068 extern mi_cmd_argv_ftype mi_cmd_exec_run;
00069 extern mi_cmd_argv_ftype mi_cmd_exec_step;
00070 extern mi_cmd_argv_ftype mi_cmd_exec_step_instruction;
00071 extern mi_cmd_argv_ftype mi_cmd_file_list_exec_source_file;
00072 extern mi_cmd_argv_ftype mi_cmd_file_list_exec_source_files;
00073 extern mi_cmd_argv_ftype mi_cmd_gdb_exit;
00074 extern mi_cmd_argv_ftype mi_cmd_inferior_tty_set;
00075 extern mi_cmd_argv_ftype mi_cmd_inferior_tty_show;
00076 extern mi_cmd_argv_ftype mi_cmd_info_os;
00077 extern mi_cmd_argv_ftype mi_cmd_interpreter_exec;
00078 extern mi_cmd_argv_ftype mi_cmd_list_features;
00079 extern mi_cmd_argv_ftype mi_cmd_list_target_features;
00080 extern mi_cmd_argv_ftype mi_cmd_list_thread_groups;
00081 extern mi_cmd_argv_ftype mi_cmd_remove_inferior;
00082 extern mi_cmd_argv_ftype mi_cmd_stack_info_depth;
00083 extern mi_cmd_argv_ftype mi_cmd_stack_info_frame;
00084 extern mi_cmd_argv_ftype mi_cmd_stack_list_args;
00085 extern mi_cmd_argv_ftype mi_cmd_stack_list_frames;
00086 extern mi_cmd_argv_ftype mi_cmd_stack_list_locals;
00087 extern mi_cmd_argv_ftype mi_cmd_stack_list_variables;
00088 extern mi_cmd_argv_ftype mi_cmd_stack_select_frame;
00089 extern mi_cmd_argv_ftype mi_cmd_symbol_list_lines;
00090 extern mi_cmd_argv_ftype mi_cmd_target_detach;
00091 extern mi_cmd_argv_ftype mi_cmd_target_file_get;
00092 extern mi_cmd_argv_ftype mi_cmd_target_file_put;
00093 extern mi_cmd_argv_ftype mi_cmd_target_file_delete;
00094 extern mi_cmd_argv_ftype mi_cmd_thread_info;
00095 extern mi_cmd_argv_ftype mi_cmd_thread_list_ids;
00096 extern mi_cmd_argv_ftype mi_cmd_thread_select;
00097 extern mi_cmd_argv_ftype mi_cmd_trace_define_variable;
00098 extern mi_cmd_argv_ftype mi_cmd_trace_find;
00099 extern mi_cmd_argv_ftype mi_cmd_trace_frame_collected;
00100 extern mi_cmd_argv_ftype mi_cmd_trace_list_variables;
00101 extern mi_cmd_argv_ftype mi_cmd_trace_save;
00102 extern mi_cmd_argv_ftype mi_cmd_trace_start;
00103 extern mi_cmd_argv_ftype mi_cmd_trace_status;
00104 extern mi_cmd_argv_ftype mi_cmd_trace_stop;
00105 extern mi_cmd_argv_ftype mi_cmd_var_assign;
00106 extern mi_cmd_argv_ftype mi_cmd_var_create;
00107 extern mi_cmd_argv_ftype mi_cmd_var_delete;
00108 extern mi_cmd_argv_ftype mi_cmd_var_evaluate_expression;
00109 extern mi_cmd_argv_ftype mi_cmd_var_info_expression;
00110 extern mi_cmd_argv_ftype mi_cmd_var_info_path_expression;
00111 extern mi_cmd_argv_ftype mi_cmd_var_info_num_children;
00112 extern mi_cmd_argv_ftype mi_cmd_var_info_type;
00113 extern mi_cmd_argv_ftype mi_cmd_var_list_children;
00114 extern mi_cmd_argv_ftype mi_cmd_var_set_format;
00115 extern mi_cmd_argv_ftype mi_cmd_var_set_frozen;
00116 extern mi_cmd_argv_ftype mi_cmd_var_set_visualizer;
00117 extern mi_cmd_argv_ftype mi_cmd_var_show_attributes;
00118 extern mi_cmd_argv_ftype mi_cmd_var_show_format;
00119 extern mi_cmd_argv_ftype mi_cmd_var_update;
00120 extern mi_cmd_argv_ftype mi_cmd_enable_pretty_printing;
00121 extern mi_cmd_argv_ftype mi_cmd_enable_frame_filters;
00122 extern mi_cmd_argv_ftype mi_cmd_var_set_update_range;
00123 
00124 /* Description of a single command.  */
00125 
00126 struct mi_cli
00127 {
00128   /* Corresponding CLI command.  If ARGS_P is non-zero, the MI
00129      command's argument list is appended to the CLI command.  */
00130   const char *cmd;
00131   int args_p;
00132 };
00133 
00134 struct mi_cmd
00135 {
00136   /* Official name of the command.  */
00137   const char *name;
00138   /* The corresponding CLI command that can be used to implement this
00139      MI command (if cli.lhs is non NULL).  */
00140   struct mi_cli cli;
00141   /* If non-null, the function implementing the MI command.  */
00142   mi_cmd_argv_ftype *argv_func;
00143   /* If non-null, the pointer to a field in
00144      'struct mi_suppress_notification', which will be set to true by MI
00145      command processor (mi-main.c:mi_cmd_execute) when this command is
00146      being executed.  It will be set back to false when command has been
00147      executed.  */
00148   int *suppress_notification;
00149 };
00150 
00151 /* Lookup a command in the MI command table.  */
00152 
00153 extern struct mi_cmd *mi_lookup (const char *command);
00154 
00155 /* Debug flag */
00156 extern int mi_debug_p;
00157 
00158 /* Raw console output - FIXME: should this be a parameter? */
00159 extern struct ui_file *raw_stdout;
00160 
00161 extern void mi_execute_command (const char *cmd, int from_tty);
00162 
00163 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines