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. 9*ef5ccd6cSJohn Marino Copyright (C) 1986-2013 Free Software Foundation, Inc. 105796c8dcSSimon Schubert 115796c8dcSSimon Schubert This program is free software; you can redistribute it and/or modify 125796c8dcSSimon Schubert it under the terms of the GNU General Public License as published by 135796c8dcSSimon Schubert the Free Software Foundation; either version 3 of the License, or 145796c8dcSSimon Schubert (at your option) any later version. 155796c8dcSSimon Schubert 165796c8dcSSimon Schubert This program is distributed in the hope that it will be useful, 175796c8dcSSimon Schubert but WITHOUT ANY WARRANTY; without even the implied warranty of 185796c8dcSSimon Schubert MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 195796c8dcSSimon Schubert GNU General Public License for more details. 205796c8dcSSimon Schubert 215796c8dcSSimon Schubert You should have received a copy of the GNU General Public License 225796c8dcSSimon Schubert along with this program. If not, see <http://www.gnu.org/licenses/>. */ 235796c8dcSSimon Schubert 245796c8dcSSimon Schubert #if !defined (GDBCMD_H) 255796c8dcSSimon Schubert #define GDBCMD_H 1 265796c8dcSSimon Schubert 275796c8dcSSimon Schubert #include "command.h" 285796c8dcSSimon Schubert #include "ui-out.h" 295796c8dcSSimon Schubert 305796c8dcSSimon Schubert /* Chain containing all defined commands. */ 315796c8dcSSimon Schubert 325796c8dcSSimon Schubert extern struct cmd_list_element *cmdlist; 335796c8dcSSimon Schubert 345796c8dcSSimon Schubert /* Chain containing all defined info subcommands. */ 355796c8dcSSimon Schubert 365796c8dcSSimon Schubert extern struct cmd_list_element *infolist; 375796c8dcSSimon Schubert 385796c8dcSSimon Schubert /* Chain containing all defined enable subcommands. */ 395796c8dcSSimon Schubert 405796c8dcSSimon Schubert extern struct cmd_list_element *enablelist; 415796c8dcSSimon Schubert 425796c8dcSSimon Schubert /* Chain containing all defined disable subcommands. */ 435796c8dcSSimon Schubert 445796c8dcSSimon Schubert extern struct cmd_list_element *disablelist; 455796c8dcSSimon Schubert 465796c8dcSSimon Schubert /* Chain containing all defined delete subcommands. */ 475796c8dcSSimon Schubert 485796c8dcSSimon Schubert extern struct cmd_list_element *deletelist; 495796c8dcSSimon Schubert 505796c8dcSSimon Schubert /* Chain containing all defined detach subcommands. */ 515796c8dcSSimon Schubert 525796c8dcSSimon Schubert extern struct cmd_list_element *detachlist; 535796c8dcSSimon Schubert 545796c8dcSSimon Schubert /* Chain containing all defined kill subcommands. */ 555796c8dcSSimon Schubert 565796c8dcSSimon Schubert extern struct cmd_list_element *killlist; 575796c8dcSSimon Schubert 585796c8dcSSimon Schubert /* Chain containing all defined toggle subcommands. */ 595796c8dcSSimon Schubert 605796c8dcSSimon Schubert extern struct cmd_list_element *togglelist; 615796c8dcSSimon Schubert 625796c8dcSSimon Schubert /* Chain containing all defined stop subcommands. */ 635796c8dcSSimon Schubert 645796c8dcSSimon Schubert extern struct cmd_list_element *stoplist; 655796c8dcSSimon Schubert 665796c8dcSSimon Schubert /* Chain containing all defined set subcommands. */ 675796c8dcSSimon Schubert 685796c8dcSSimon Schubert extern struct cmd_list_element *setlist; 695796c8dcSSimon Schubert 705796c8dcSSimon Schubert /* Chain containing all defined unset subcommands. */ 715796c8dcSSimon Schubert 725796c8dcSSimon Schubert extern struct cmd_list_element *unsetlist; 735796c8dcSSimon Schubert 745796c8dcSSimon Schubert /* Chain containing all defined show subcommands. */ 755796c8dcSSimon Schubert 765796c8dcSSimon Schubert extern struct cmd_list_element *showlist; 775796c8dcSSimon Schubert 785796c8dcSSimon Schubert /* Chain containing all defined \"set history\". */ 795796c8dcSSimon Schubert 805796c8dcSSimon Schubert extern struct cmd_list_element *sethistlist; 815796c8dcSSimon Schubert 825796c8dcSSimon Schubert /* Chain containing all defined \"show history\". */ 835796c8dcSSimon Schubert 845796c8dcSSimon Schubert extern struct cmd_list_element *showhistlist; 855796c8dcSSimon Schubert 865796c8dcSSimon Schubert /* Chain containing all defined \"unset history\". */ 875796c8dcSSimon Schubert 885796c8dcSSimon Schubert extern struct cmd_list_element *unsethistlist; 895796c8dcSSimon Schubert 905796c8dcSSimon Schubert /* Chain containing all defined maintenance subcommands. */ 915796c8dcSSimon Schubert 925796c8dcSSimon Schubert extern struct cmd_list_element *maintenancelist; 935796c8dcSSimon Schubert 945796c8dcSSimon Schubert /* Chain containing all defined "maintenance info" subcommands. */ 955796c8dcSSimon Schubert 965796c8dcSSimon Schubert extern struct cmd_list_element *maintenanceinfolist; 975796c8dcSSimon Schubert 985796c8dcSSimon Schubert /* Chain containing all defined "maintenance print" subcommands. */ 995796c8dcSSimon Schubert 1005796c8dcSSimon Schubert extern struct cmd_list_element *maintenanceprintlist; 1015796c8dcSSimon Schubert 1025796c8dcSSimon Schubert /* Chain containing all defined "maintenance set" subcommands. */ 1035796c8dcSSimon Schubert 1045796c8dcSSimon Schubert extern struct cmd_list_element *maintenance_set_cmdlist; 1055796c8dcSSimon Schubert 1065796c8dcSSimon Schubert /* Chain containing all defined "maintenance show" subcommands. */ 1075796c8dcSSimon Schubert 1085796c8dcSSimon Schubert extern struct cmd_list_element *maintenance_show_cmdlist; 1095796c8dcSSimon Schubert 1105796c8dcSSimon Schubert extern struct cmd_list_element *setprintlist; 1115796c8dcSSimon Schubert 1125796c8dcSSimon Schubert extern struct cmd_list_element *showprintlist; 1135796c8dcSSimon Schubert 114*ef5ccd6cSJohn Marino extern struct cmd_list_element *setprinttypelist; 115*ef5ccd6cSJohn Marino 116*ef5ccd6cSJohn Marino extern struct cmd_list_element *showprinttypelist; 117*ef5ccd6cSJohn Marino 1185796c8dcSSimon Schubert extern struct cmd_list_element *setdebuglist; 1195796c8dcSSimon Schubert 1205796c8dcSSimon Schubert extern struct cmd_list_element *showdebuglist; 1215796c8dcSSimon Schubert 1225796c8dcSSimon Schubert extern struct cmd_list_element *setchecklist; 1235796c8dcSSimon Schubert 1245796c8dcSSimon Schubert extern struct cmd_list_element *showchecklist; 1255796c8dcSSimon Schubert 126c50c785cSJohn Marino /* Chain containing all defined "save" subcommands. */ 127c50c785cSJohn Marino 128c50c785cSJohn Marino extern struct cmd_list_element *save_cmdlist; 129c50c785cSJohn Marino 1305796c8dcSSimon Schubert extern void execute_command (char *, int); 131cf7f2e2dSJohn Marino extern char *execute_command_to_string (char *p, int from_tty); 1325796c8dcSSimon Schubert 1335796c8dcSSimon Schubert enum command_control_type execute_control_command (struct command_line *); 1345796c8dcSSimon Schubert 1355796c8dcSSimon Schubert extern void print_command_line (struct command_line *, unsigned int, 1365796c8dcSSimon Schubert struct ui_file *); 1375796c8dcSSimon Schubert extern void print_command_lines (struct ui_out *, 1385796c8dcSSimon Schubert struct command_line *, unsigned int); 1395796c8dcSSimon Schubert 1405796c8dcSSimon Schubert #endif /* !defined (GDBCMD_H) */ 141