GDB (API)
|
00001 /* Header file for GDB CLI command implementation library. 00002 Copyright (C) 2000-2013 Free Software Foundation, Inc. 00003 00004 This program is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU General Public License as published by 00006 the Free Software Foundation; either version 3 of the License, or 00007 (at your option) any later version. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU General Public License for more details. 00013 00014 You should have received a copy of the GNU General Public License 00015 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 00016 00017 #if !defined (CLI_CMDS_H) 00018 #define CLI_CMDS_H 1 00019 00020 /* Chain containing all defined commands. */ 00021 00022 extern struct cmd_list_element *cmdlist; 00023 00024 /* Chain containing all defined info subcommands. */ 00025 00026 extern struct cmd_list_element *infolist; 00027 00028 /* Chain containing all defined enable subcommands. */ 00029 00030 extern struct cmd_list_element *enablelist; 00031 00032 /* Chain containing all defined disable subcommands. */ 00033 00034 extern struct cmd_list_element *disablelist; 00035 00036 /* Chain containing all defined delete subcommands. */ 00037 00038 extern struct cmd_list_element *deletelist; 00039 00040 /* Chain containing all defined detach subcommands. */ 00041 00042 extern struct cmd_list_element *detachlist; 00043 00044 /* Chain containing all defined kill subcommands. */ 00045 00046 extern struct cmd_list_element *killlist; 00047 00048 /* Chain containing all defined stop subcommands. */ 00049 00050 extern struct cmd_list_element *stoplist; 00051 00052 /* Chain containing all defined set subcommands */ 00053 00054 extern struct cmd_list_element *setlist; 00055 00056 /* Chain containing all defined unset subcommands */ 00057 00058 extern struct cmd_list_element *unsetlist; 00059 00060 /* Chain containing all defined show subcommands. */ 00061 00062 extern struct cmd_list_element *showlist; 00063 00064 /* Chain containing all defined \"set history\". */ 00065 00066 extern struct cmd_list_element *sethistlist; 00067 00068 /* Chain containing all defined \"show history\". */ 00069 00070 extern struct cmd_list_element *showhistlist; 00071 00072 /* Chain containing all defined \"unset history\". */ 00073 00074 extern struct cmd_list_element *unsethistlist; 00075 00076 /* Chain containing all defined maintenance subcommands. */ 00077 00078 extern struct cmd_list_element *maintenancelist; 00079 00080 /* Chain containing all defined "maintenance info" subcommands. */ 00081 00082 extern struct cmd_list_element *maintenanceinfolist; 00083 00084 /* Chain containing all defined "maintenance print" subcommands. */ 00085 00086 extern struct cmd_list_element *maintenanceprintlist; 00087 00088 extern struct cmd_list_element *setprintlist; 00089 00090 extern struct cmd_list_element *showprintlist; 00091 00092 extern struct cmd_list_element *setdebuglist; 00093 00094 extern struct cmd_list_element *showdebuglist; 00095 00096 extern struct cmd_list_element *setchecklist; 00097 00098 extern struct cmd_list_element *showchecklist; 00099 00100 /* Exported to gdb/top.c */ 00101 00102 void init_cmd_lists (void); 00103 00104 void init_cli_cmds (void); 00105 00106 int is_complete_command (struct cmd_list_element *cmd); 00107 00108 /* Exported to gdb/main.c */ 00109 00110 extern void cd_command (char *, int); 00111 00112 /* Exported to gdb/top.c and gdb/main.c */ 00113 00114 extern void quit_command (char *, int); 00115 00116 extern void source_script (const char *, int); 00117 00118 /* Exported to objfiles.c. */ 00119 00120 extern int find_and_open_script (const char *file, int search_path, 00121 FILE **streamp, char **full_path); 00122 00123 /* Command tracing state. */ 00124 00125 extern int source_verbose; 00126 extern int trace_commands; 00127 00128 #endif /* !defined (CLI_CMDS_H) */