15796c8dcSSimon Schubert /* ***DEPRECATED*** The gdblib files must not be calling/using things in any 25796c8dcSSimon Schubert of the possible command languages. If necessary, a hook (that may be 35796c8dcSSimon Schubert present or not) must be used and set to the appropriate routine by any 45796c8dcSSimon Schubert command language that cares about it. If you are having to include this 55796c8dcSSimon Schubert file you are possibly doing things the old way. This file will disapear. 65796c8dcSSimon Schubert fnasser@redhat.com */ 75796c8dcSSimon Schubert 85796c8dcSSimon Schubert /* Header file for GDB-specific command-line stuff. 95796c8dcSSimon Schubert Copyright (C) 1986, 1989, 1990, 1991, 1992, 1993, 1994, 1998, 1999, 2000, 10*cf7f2e2dSJohn Marino 2002, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 115796c8dcSSimon Schubert 125796c8dcSSimon Schubert This program is free software; you can redistribute it and/or modify 135796c8dcSSimon Schubert it under the terms of the GNU General Public License as published by 145796c8dcSSimon Schubert the Free Software Foundation; either version 3 of the License, or 155796c8dcSSimon Schubert (at your option) any later version. 165796c8dcSSimon Schubert 175796c8dcSSimon Schubert This program is distributed in the hope that it will be useful, 185796c8dcSSimon Schubert but WITHOUT ANY WARRANTY; without even the implied warranty of 195796c8dcSSimon Schubert MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 205796c8dcSSimon Schubert GNU General Public License for more details. 215796c8dcSSimon Schubert 225796c8dcSSimon Schubert You should have received a copy of the GNU General Public License 235796c8dcSSimon Schubert along with this program. If not, see <http://www.gnu.org/licenses/>. */ 245796c8dcSSimon Schubert 255796c8dcSSimon Schubert #if !defined (GDBCMD_H) 265796c8dcSSimon Schubert #define GDBCMD_H 1 275796c8dcSSimon Schubert 285796c8dcSSimon Schubert #include "command.h" 295796c8dcSSimon Schubert #include "ui-out.h" 305796c8dcSSimon Schubert 315796c8dcSSimon Schubert /* Chain containing all defined commands. */ 325796c8dcSSimon Schubert 335796c8dcSSimon Schubert extern struct cmd_list_element *cmdlist; 345796c8dcSSimon Schubert 355796c8dcSSimon Schubert /* Chain containing all defined info subcommands. */ 365796c8dcSSimon Schubert 375796c8dcSSimon Schubert extern struct cmd_list_element *infolist; 385796c8dcSSimon Schubert 395796c8dcSSimon Schubert /* Chain containing all defined enable subcommands. */ 405796c8dcSSimon Schubert 415796c8dcSSimon Schubert extern struct cmd_list_element *enablelist; 425796c8dcSSimon Schubert 435796c8dcSSimon Schubert /* Chain containing all defined disable subcommands. */ 445796c8dcSSimon Schubert 455796c8dcSSimon Schubert extern struct cmd_list_element *disablelist; 465796c8dcSSimon Schubert 475796c8dcSSimon Schubert /* Chain containing all defined delete subcommands. */ 485796c8dcSSimon Schubert 495796c8dcSSimon Schubert extern struct cmd_list_element *deletelist; 505796c8dcSSimon Schubert 515796c8dcSSimon Schubert /* Chain containing all defined detach subcommands. */ 525796c8dcSSimon Schubert 535796c8dcSSimon Schubert extern struct cmd_list_element *detachlist; 545796c8dcSSimon Schubert 555796c8dcSSimon Schubert /* Chain containing all defined kill subcommands. */ 565796c8dcSSimon Schubert 575796c8dcSSimon Schubert extern struct cmd_list_element *killlist; 585796c8dcSSimon Schubert 595796c8dcSSimon Schubert /* Chain containing all defined toggle subcommands. */ 605796c8dcSSimon Schubert 615796c8dcSSimon Schubert extern struct cmd_list_element *togglelist; 625796c8dcSSimon Schubert 635796c8dcSSimon Schubert /* Chain containing all defined stop subcommands. */ 645796c8dcSSimon Schubert 655796c8dcSSimon Schubert extern struct cmd_list_element *stoplist; 665796c8dcSSimon Schubert 675796c8dcSSimon Schubert /* Chain containing all defined "enable breakpoint" subcommands. */ 685796c8dcSSimon Schubert 695796c8dcSSimon Schubert extern struct cmd_list_element *enablebreaklist; 705796c8dcSSimon Schubert 715796c8dcSSimon Schubert /* Chain containing all defined set subcommands. */ 725796c8dcSSimon Schubert 735796c8dcSSimon Schubert extern struct cmd_list_element *setlist; 745796c8dcSSimon Schubert 755796c8dcSSimon Schubert /* Chain containing all defined unset subcommands. */ 765796c8dcSSimon Schubert 775796c8dcSSimon Schubert extern struct cmd_list_element *unsetlist; 785796c8dcSSimon Schubert 795796c8dcSSimon Schubert /* Chain containing all defined show subcommands. */ 805796c8dcSSimon Schubert 815796c8dcSSimon Schubert extern struct cmd_list_element *showlist; 825796c8dcSSimon Schubert 835796c8dcSSimon Schubert /* Chain containing all defined \"set history\". */ 845796c8dcSSimon Schubert 855796c8dcSSimon Schubert extern struct cmd_list_element *sethistlist; 865796c8dcSSimon Schubert 875796c8dcSSimon Schubert /* Chain containing all defined \"show history\". */ 885796c8dcSSimon Schubert 895796c8dcSSimon Schubert extern struct cmd_list_element *showhistlist; 905796c8dcSSimon Schubert 915796c8dcSSimon Schubert /* Chain containing all defined \"unset history\". */ 925796c8dcSSimon Schubert 935796c8dcSSimon Schubert extern struct cmd_list_element *unsethistlist; 945796c8dcSSimon Schubert 955796c8dcSSimon Schubert /* Chain containing all defined maintenance subcommands. */ 965796c8dcSSimon Schubert 975796c8dcSSimon Schubert extern struct cmd_list_element *maintenancelist; 985796c8dcSSimon Schubert 995796c8dcSSimon Schubert /* Chain containing all defined "maintenance info" subcommands. */ 1005796c8dcSSimon Schubert 1015796c8dcSSimon Schubert extern struct cmd_list_element *maintenanceinfolist; 1025796c8dcSSimon Schubert 1035796c8dcSSimon Schubert /* Chain containing all defined "maintenance print" subcommands. */ 1045796c8dcSSimon Schubert 1055796c8dcSSimon Schubert extern struct cmd_list_element *maintenanceprintlist; 1065796c8dcSSimon Schubert 1075796c8dcSSimon Schubert /* Chain containing all defined "maintenance set" subcommands. */ 1085796c8dcSSimon Schubert 1095796c8dcSSimon Schubert extern struct cmd_list_element *maintenance_set_cmdlist; 1105796c8dcSSimon Schubert 1115796c8dcSSimon Schubert /* Chain containing all defined "maintenance show" subcommands. */ 1125796c8dcSSimon Schubert 1135796c8dcSSimon Schubert extern struct cmd_list_element *maintenance_show_cmdlist; 1145796c8dcSSimon Schubert 1155796c8dcSSimon Schubert extern struct cmd_list_element *setprintlist; 1165796c8dcSSimon Schubert 1175796c8dcSSimon Schubert extern struct cmd_list_element *showprintlist; 1185796c8dcSSimon Schubert 1195796c8dcSSimon Schubert extern struct cmd_list_element *setdebuglist; 1205796c8dcSSimon Schubert 1215796c8dcSSimon Schubert extern struct cmd_list_element *showdebuglist; 1225796c8dcSSimon Schubert 1235796c8dcSSimon Schubert extern struct cmd_list_element *setchecklist; 1245796c8dcSSimon Schubert 1255796c8dcSSimon Schubert extern struct cmd_list_element *showchecklist; 1265796c8dcSSimon Schubert 1275796c8dcSSimon Schubert extern void execute_command (char *, int); 128*cf7f2e2dSJohn Marino extern char *execute_command_to_string (char *p, int from_tty); 1295796c8dcSSimon Schubert 1305796c8dcSSimon Schubert enum command_control_type execute_control_command (struct command_line *); 1315796c8dcSSimon Schubert 1325796c8dcSSimon Schubert extern void print_command_line (struct command_line *, unsigned int, 1335796c8dcSSimon Schubert struct ui_file *); 1345796c8dcSSimon Schubert extern void print_command_lines (struct ui_out *, 1355796c8dcSSimon Schubert struct command_line *, unsigned int); 1365796c8dcSSimon Schubert 1375796c8dcSSimon Schubert #endif /* !defined (GDBCMD_H) */ 138