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, 1991, 1992, 1993, 1994, 1998, 1999, 2000
10 Free Software Foundation, Inc.
12 This program is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 2 of the License, or
15 (at your option) any later version.
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software
24 Foundation, Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA. */
27 #if !defined (GDBCMD_H)
35 /* Chain containing all defined commands. */
37 extern struct cmd_list_element *cmdlist;
39 /* Chain containing all defined info subcommands. */
41 extern struct cmd_list_element *infolist;
43 /* Chain containing all defined enable subcommands. */
45 extern struct cmd_list_element *enablelist;
47 /* Chain containing all defined disable subcommands. */
49 extern struct cmd_list_element *disablelist;
51 /* Chain containing all defined delete subcommands. */
53 extern struct cmd_list_element *deletelist;
55 /* Chain containing all defined toggle subcommands. */
57 extern struct cmd_list_element *togglelist;
59 /* Chain containing all defined stop subcommands. */
61 extern struct cmd_list_element *stoplist;
63 /* Chain containing all defined "enable breakpoint" subcommands. */
65 extern struct cmd_list_element *enablebreaklist;
67 /* Chain containing all defined set subcommands */
69 extern struct cmd_list_element *setlist;
71 /* Chain containing all defined unset subcommands */
73 extern struct cmd_list_element *unsetlist;
75 /* Chain containing all defined show subcommands. */
77 extern struct cmd_list_element *showlist;
79 /* Chain containing all defined \"set history\". */
81 extern struct cmd_list_element *sethistlist;
83 /* Chain containing all defined \"show history\". */
85 extern struct cmd_list_element *showhistlist;
87 /* Chain containing all defined \"unset history\". */
89 extern struct cmd_list_element *unsethistlist;
91 /* Chain containing all defined maintenance subcommands. */
93 extern struct cmd_list_element *maintenancelist;
95 /* Chain containing all defined "maintenance info" subcommands. */
97 extern struct cmd_list_element *maintenanceinfolist;
99 /* Chain containing all defined "maintenance print" subcommands. */
101 extern struct cmd_list_element *maintenanceprintlist;
103 extern struct cmd_list_element *setprintlist;
105 extern struct cmd_list_element *showprintlist;
107 extern struct cmd_list_element *setdebuglist;
109 extern struct cmd_list_element *showdebuglist;
111 extern struct cmd_list_element *setchecklist;
113 extern struct cmd_list_element *showchecklist;
115 extern void execute_user_command (struct cmd_list_element *, char *);
117 extern void execute_command (char *, int);
119 enum command_control_type execute_control_command (struct command_line *);
121 extern void print_command_line (struct command_line *, unsigned int,
124 extern void print_command_lines (struct ui_out *,
125 struct command_line *, unsigned int);
128 #endif /* !defined (GDBCMD_H) */