15796c8dcSSimon Schubert /* Header file for GDB CLI command implementation library. 2*ef5ccd6cSJohn Marino Copyright (C) 2000-2013 Free Software Foundation, Inc. 35796c8dcSSimon Schubert 45796c8dcSSimon Schubert This program is free software; you can redistribute it and/or modify 55796c8dcSSimon Schubert it under the terms of the GNU General Public License as published by 65796c8dcSSimon Schubert the Free Software Foundation; either version 3 of the License, or 75796c8dcSSimon Schubert (at your option) any later version. 85796c8dcSSimon Schubert 95796c8dcSSimon Schubert This program is distributed in the hope that it will be useful, 105796c8dcSSimon Schubert but WITHOUT ANY WARRANTY; without even the implied warranty of 115796c8dcSSimon Schubert MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 125796c8dcSSimon Schubert GNU General Public License for more details. 135796c8dcSSimon Schubert 145796c8dcSSimon Schubert You should have received a copy of the GNU General Public License 155796c8dcSSimon Schubert along with this program. If not, see <http://www.gnu.org/licenses/>. */ 165796c8dcSSimon Schubert 175796c8dcSSimon Schubert #if !defined (CLI_CMDS_H) 185796c8dcSSimon Schubert #define CLI_CMDS_H 1 195796c8dcSSimon Schubert 205796c8dcSSimon Schubert /* Chain containing all defined commands. */ 215796c8dcSSimon Schubert 225796c8dcSSimon Schubert extern struct cmd_list_element *cmdlist; 235796c8dcSSimon Schubert 245796c8dcSSimon Schubert /* Chain containing all defined info subcommands. */ 255796c8dcSSimon Schubert 265796c8dcSSimon Schubert extern struct cmd_list_element *infolist; 275796c8dcSSimon Schubert 285796c8dcSSimon Schubert /* Chain containing all defined enable subcommands. */ 295796c8dcSSimon Schubert 305796c8dcSSimon Schubert extern struct cmd_list_element *enablelist; 315796c8dcSSimon Schubert 325796c8dcSSimon Schubert /* Chain containing all defined disable subcommands. */ 335796c8dcSSimon Schubert 345796c8dcSSimon Schubert extern struct cmd_list_element *disablelist; 355796c8dcSSimon Schubert 365796c8dcSSimon Schubert /* Chain containing all defined delete subcommands. */ 375796c8dcSSimon Schubert 385796c8dcSSimon Schubert extern struct cmd_list_element *deletelist; 395796c8dcSSimon Schubert 405796c8dcSSimon Schubert /* Chain containing all defined detach subcommands. */ 415796c8dcSSimon Schubert 425796c8dcSSimon Schubert extern struct cmd_list_element *detachlist; 435796c8dcSSimon Schubert 445796c8dcSSimon Schubert /* Chain containing all defined kill subcommands. */ 455796c8dcSSimon Schubert 465796c8dcSSimon Schubert extern struct cmd_list_element *killlist; 475796c8dcSSimon Schubert 485796c8dcSSimon Schubert /* Chain containing all defined toggle subcommands. */ 495796c8dcSSimon Schubert 505796c8dcSSimon Schubert extern struct cmd_list_element *togglelist; 515796c8dcSSimon Schubert 525796c8dcSSimon Schubert /* Chain containing all defined stop subcommands. */ 535796c8dcSSimon Schubert 545796c8dcSSimon Schubert extern struct cmd_list_element *stoplist; 555796c8dcSSimon Schubert 565796c8dcSSimon Schubert /* Chain containing all defined set subcommands */ 575796c8dcSSimon Schubert 585796c8dcSSimon Schubert extern struct cmd_list_element *setlist; 595796c8dcSSimon Schubert 605796c8dcSSimon Schubert /* Chain containing all defined unset subcommands */ 615796c8dcSSimon Schubert 625796c8dcSSimon Schubert extern struct cmd_list_element *unsetlist; 635796c8dcSSimon Schubert 645796c8dcSSimon Schubert /* Chain containing all defined show subcommands. */ 655796c8dcSSimon Schubert 665796c8dcSSimon Schubert extern struct cmd_list_element *showlist; 675796c8dcSSimon Schubert 685796c8dcSSimon Schubert /* Chain containing all defined \"set history\". */ 695796c8dcSSimon Schubert 705796c8dcSSimon Schubert extern struct cmd_list_element *sethistlist; 715796c8dcSSimon Schubert 725796c8dcSSimon Schubert /* Chain containing all defined \"show history\". */ 735796c8dcSSimon Schubert 745796c8dcSSimon Schubert extern struct cmd_list_element *showhistlist; 755796c8dcSSimon Schubert 765796c8dcSSimon Schubert /* Chain containing all defined \"unset history\". */ 775796c8dcSSimon Schubert 785796c8dcSSimon Schubert extern struct cmd_list_element *unsethistlist; 795796c8dcSSimon Schubert 805796c8dcSSimon Schubert /* Chain containing all defined maintenance subcommands. */ 815796c8dcSSimon Schubert 825796c8dcSSimon Schubert extern struct cmd_list_element *maintenancelist; 835796c8dcSSimon Schubert 845796c8dcSSimon Schubert /* Chain containing all defined "maintenance info" subcommands. */ 855796c8dcSSimon Schubert 865796c8dcSSimon Schubert extern struct cmd_list_element *maintenanceinfolist; 875796c8dcSSimon Schubert 885796c8dcSSimon Schubert /* Chain containing all defined "maintenance print" subcommands. */ 895796c8dcSSimon Schubert 905796c8dcSSimon Schubert extern struct cmd_list_element *maintenanceprintlist; 915796c8dcSSimon Schubert 925796c8dcSSimon Schubert extern struct cmd_list_element *setprintlist; 935796c8dcSSimon Schubert 945796c8dcSSimon Schubert extern struct cmd_list_element *showprintlist; 955796c8dcSSimon Schubert 965796c8dcSSimon Schubert extern struct cmd_list_element *setdebuglist; 975796c8dcSSimon Schubert 985796c8dcSSimon Schubert extern struct cmd_list_element *showdebuglist; 995796c8dcSSimon Schubert 1005796c8dcSSimon Schubert extern struct cmd_list_element *setchecklist; 1015796c8dcSSimon Schubert 1025796c8dcSSimon Schubert extern struct cmd_list_element *showchecklist; 1035796c8dcSSimon Schubert 1045796c8dcSSimon Schubert /* Exported to gdb/top.c */ 1055796c8dcSSimon Schubert 1065796c8dcSSimon Schubert void init_cmd_lists (void); 1075796c8dcSSimon Schubert 1085796c8dcSSimon Schubert void init_cli_cmds (void); 1095796c8dcSSimon Schubert 1105796c8dcSSimon Schubert int is_complete_command (struct cmd_list_element *cmd); 1115796c8dcSSimon Schubert 1125796c8dcSSimon Schubert /* Exported to gdb/main.c */ 1135796c8dcSSimon Schubert 1145796c8dcSSimon Schubert extern void cd_command (char *, int); 1155796c8dcSSimon Schubert 1165796c8dcSSimon Schubert /* Exported to gdb/top.c and gdb/main.c */ 1175796c8dcSSimon Schubert 1185796c8dcSSimon Schubert extern void quit_command (char *, int); 1195796c8dcSSimon Schubert 1205796c8dcSSimon Schubert extern void source_script (char *, int); 1215796c8dcSSimon Schubert 122cf7f2e2dSJohn Marino /* Exported to objfiles.c. */ 1235796c8dcSSimon Schubert 124cf7f2e2dSJohn Marino extern int find_and_open_script (const char *file, int search_path, 125cf7f2e2dSJohn Marino FILE **streamp, char **full_path); 1265796c8dcSSimon Schubert 1275796c8dcSSimon Schubert /* Command tracing state. */ 1285796c8dcSSimon Schubert 1295796c8dcSSimon Schubert extern int source_verbose; 1305796c8dcSSimon Schubert extern int trace_commands; 1315796c8dcSSimon Schubert 1325796c8dcSSimon Schubert #endif /* !defined (CLI_CMDS_H) */ 133