This commit was generated by cvs2svn to track changes on a CVS vendor
[external/binutils.git] / gdb / gdbcmd.h
1 /* Header file for GDB-specific command-line stuff.
2    Copyright 1986, 1989, 1990, 1992, 2000 Free Software Foundation, Inc.
3
4    This program is free software; you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation; either version 2 of the License, or
7    (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with this program; if not, write to the Free Software
16    Foundation, Inc., 59 Temple Place - Suite 330,
17    Boston, MA 02111-1307, USA.  */
18
19 #if !defined (GDBCMD_H)
20 #define GDBCMD_H 1
21
22 #include "command.h"
23 #ifdef UI_OUT
24 #include "ui-out.h"
25 #endif
26
27 /* Chain containing all defined commands.  */
28
29 extern struct cmd_list_element *cmdlist;
30
31 /* Chain containing all defined info subcommands.  */
32
33 extern struct cmd_list_element *infolist;
34
35 /* Chain containing all defined enable subcommands. */
36
37 extern struct cmd_list_element *enablelist;
38
39 /* Chain containing all defined disable subcommands. */
40
41 extern struct cmd_list_element *disablelist;
42
43 /* Chain containing all defined delete subcommands. */
44
45 extern struct cmd_list_element *deletelist;
46
47 /* Chain containing all defined toggle subcommands. */
48
49 extern struct cmd_list_element *togglelist;
50
51 /* Chain containing all defined stop subcommands. */
52
53 extern struct cmd_list_element *stoplist;
54
55 /* Chain containing all defined "enable breakpoint" subcommands. */
56
57 extern struct cmd_list_element *enablebreaklist;
58
59 /* Chain containing all defined set subcommands */
60
61 extern struct cmd_list_element *setlist;
62
63 /* Chain containing all defined unset subcommands */
64
65 extern struct cmd_list_element *unsetlist;
66
67 /* Chain containing all defined show subcommands.  */
68
69 extern struct cmd_list_element *showlist;
70
71 /* Chain containing all defined \"set history\".  */
72
73 extern struct cmd_list_element *sethistlist;
74
75 /* Chain containing all defined \"show history\".  */
76
77 extern struct cmd_list_element *showhistlist;
78
79 /* Chain containing all defined \"unset history\".  */
80
81 extern struct cmd_list_element *unsethistlist;
82
83 /* Chain containing all defined maintenance subcommands. */
84
85 extern struct cmd_list_element *maintenancelist;
86
87 /* Chain containing all defined "maintenance info" subcommands. */
88
89 extern struct cmd_list_element *maintenanceinfolist;
90
91 /* Chain containing all defined "maintenance print" subcommands. */
92
93 extern struct cmd_list_element *maintenanceprintlist;
94
95 extern struct cmd_list_element *setprintlist;
96
97 extern struct cmd_list_element *showprintlist;
98
99 extern struct cmd_list_element *setchecklist;
100
101 extern struct cmd_list_element *showchecklist;
102
103 extern void
104 execute_user_command PARAMS ((struct cmd_list_element *, char *));
105
106 extern void
107 execute_command PARAMS ((char *, int));
108
109 enum command_control_type
110 execute_control_command PARAMS ((struct command_line *));
111
112 extern void print_command_line (struct command_line *, unsigned int,
113                                 struct ui_file *);
114 #ifdef UI_OUT
115 extern void print_command_lines PARAMS ((struct ui_out *,
116                                       struct command_line *, unsigned int));
117 #endif
118
119 extern char **noop_completer PARAMS ((char *, char *));
120
121 extern char **filename_completer PARAMS ((char *, char *));
122
123 #endif /* !defined (GDBCMD_H) */