1 /* ***DEPRECATED*** The gdblib files must not be calling/using things in any
2 of the possible command languages. If necessary, a hook (that may be
3 present or not) must be used and set to the appropriate routine by any
4 command language that cares about it. If you are having to include this
5 file you are possibly doing things the old way. This file will disapear.
8 /* Header file for GDB-specific command-line stuff.
9 Copyright 1986, 1989, 1990, 1992, 2000 Free Software Foundation, Inc.
11 This program is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 2 of the License, or
14 (at your option) any later version.
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 59 Temple Place - Suite 330,
24 Boston, MA 02111-1307, USA. */
26 #if !defined (GDBCMD_H)
34 /* Chain containing all defined commands. */
36 extern struct cmd_list_element *cmdlist;
38 /* Chain containing all defined info subcommands. */
40 extern struct cmd_list_element *infolist;
42 /* Chain containing all defined enable subcommands. */
44 extern struct cmd_list_element *enablelist;
46 /* Chain containing all defined disable subcommands. */
48 extern struct cmd_list_element *disablelist;
50 /* Chain containing all defined delete subcommands. */
52 extern struct cmd_list_element *deletelist;
54 /* Chain containing all defined toggle subcommands. */
56 extern struct cmd_list_element *togglelist;
58 /* Chain containing all defined stop subcommands. */
60 extern struct cmd_list_element *stoplist;
62 /* Chain containing all defined "enable breakpoint" subcommands. */
64 extern struct cmd_list_element *enablebreaklist;
66 /* Chain containing all defined set subcommands */
68 extern struct cmd_list_element *setlist;
70 /* Chain containing all defined unset subcommands */
72 extern struct cmd_list_element *unsetlist;
74 /* Chain containing all defined show subcommands. */
76 extern struct cmd_list_element *showlist;
78 /* Chain containing all defined \"set history\". */
80 extern struct cmd_list_element *sethistlist;
82 /* Chain containing all defined \"show history\". */
84 extern struct cmd_list_element *showhistlist;
86 /* Chain containing all defined \"unset history\". */
88 extern struct cmd_list_element *unsethistlist;
90 /* Chain containing all defined maintenance subcommands. */
92 extern struct cmd_list_element *maintenancelist;
94 /* Chain containing all defined "maintenance info" subcommands. */
96 extern struct cmd_list_element *maintenanceinfolist;
98 /* Chain containing all defined "maintenance print" subcommands. */
100 extern struct cmd_list_element *maintenanceprintlist;
102 extern struct cmd_list_element *setprintlist;
104 extern struct cmd_list_element *showprintlist;
106 extern struct cmd_list_element *setdebuglist;
108 extern struct cmd_list_element *showdebuglist;
110 extern struct cmd_list_element *setchecklist;
112 extern struct cmd_list_element *showchecklist;
114 extern void execute_user_command (struct cmd_list_element *, char *);
116 extern void execute_command (char *, int);
118 enum command_control_type execute_control_command (struct command_line *);
120 extern void print_command_line (struct command_line *, unsigned int,
123 extern void print_command_lines (struct ui_out *,
124 struct command_line *, unsigned int);
127 extern char **noop_completer (char *, char *);
129 extern char **filename_completer (char *, char *);
131 #endif /* !defined (GDBCMD_H) */