]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/gdb/gdb/cli/cli-cmds.h
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / gdb / gdb / cli / cli-cmds.h
1 /* Header file for GDB CLI command implementation library.
2    Copyright 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 (CLI_CMDS_H)
20 #define CLI_CMDS_H 1
21
22 /* Chain containing all defined commands.  */
23
24 extern struct cmd_list_element *cmdlist;
25
26 /* Chain containing all defined info subcommands.  */
27
28 extern struct cmd_list_element *infolist;
29
30 /* Chain containing all defined enable subcommands. */
31
32 extern struct cmd_list_element *enablelist;
33
34 /* Chain containing all defined disable subcommands. */
35
36 extern struct cmd_list_element *disablelist;
37
38 /* Chain containing all defined delete subcommands. */
39
40 extern struct cmd_list_element *deletelist;
41
42 /* Chain containing all defined toggle subcommands. */
43
44 extern struct cmd_list_element *togglelist;
45
46 /* Chain containing all defined stop subcommands. */
47
48 extern struct cmd_list_element *stoplist;
49
50 /* Chain containing all defined "enable breakpoint" subcommands. */
51
52 extern struct cmd_list_element *enablebreaklist;
53
54 /* Chain containing all defined set subcommands */
55
56 extern struct cmd_list_element *setlist;
57
58 /* Chain containing all defined unset subcommands */
59
60 extern struct cmd_list_element *unsetlist;
61
62 /* Chain containing all defined show subcommands.  */
63
64 extern struct cmd_list_element *showlist;
65
66 /* Chain containing all defined \"set history\".  */
67
68 extern struct cmd_list_element *sethistlist;
69
70 /* Chain containing all defined \"show history\".  */
71
72 extern struct cmd_list_element *showhistlist;
73
74 /* Chain containing all defined \"unset history\".  */
75
76 extern struct cmd_list_element *unsethistlist;
77
78 /* Chain containing all defined maintenance subcommands. */
79
80 extern struct cmd_list_element *maintenancelist;
81
82 /* Chain containing all defined "maintenance info" subcommands. */
83
84 extern struct cmd_list_element *maintenanceinfolist;
85
86 /* Chain containing all defined "maintenance print" subcommands. */
87
88 extern struct cmd_list_element *maintenanceprintlist;
89
90 extern struct cmd_list_element *setprintlist;
91
92 extern struct cmd_list_element *showprintlist;
93
94 extern struct cmd_list_element *setdebuglist;
95
96 extern struct cmd_list_element *showdebuglist;
97
98 extern struct cmd_list_element *setchecklist;
99
100 extern struct cmd_list_element *showchecklist;
101
102 /* Exported to gdb/top.c */
103
104 void init_cmd_lists (void);
105
106 void init_cli_cmds (void);
107
108 int is_complete_command (struct cmd_list_element *cmd);
109
110 /* Exported to gdb/main.c */
111
112 extern void cd_command (char *, int);
113
114 /* Exported to gdb/top.c and gdb/main.c */
115
116 extern void quit_command (char *, int);
117
118 extern void source_command (char *, int);
119
120 /* Used everywhere whenever at least one parameter is required and
121   none is specified. */
122
123 extern NORETURN void error_no_arg (char *) ATTR_NORETURN;
124
125 #endif /* !defined (CLI_CMDS_H) */