]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/cli/cli-cmds.h
Copyright updates for 2007.
[thirdparty/binutils-gdb.git] / gdb / cli / cli-cmds.h
CommitLineData
d318976c 1/* Header file for GDB CLI command implementation library.
6aba47ca 2 Copyright (c) 2000,2006,2007 Free Software Foundation, Inc.
d318976c
FN
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
10f9c213
EZ
16 Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA. */
d318976c
FN
18
19#if !defined (CLI_CMDS_H)
20#define CLI_CMDS_H 1
21
22/* Chain containing all defined commands. */
23
24extern struct cmd_list_element *cmdlist;
25
26/* Chain containing all defined info subcommands. */
27
28extern struct cmd_list_element *infolist;
29
30/* Chain containing all defined enable subcommands. */
31
32extern struct cmd_list_element *enablelist;
33
34/* Chain containing all defined disable subcommands. */
35
36extern struct cmd_list_element *disablelist;
37
38/* Chain containing all defined delete subcommands. */
39
40extern struct cmd_list_element *deletelist;
41
f73adfeb
AS
42/* Chain containing all defined detach subcommands. */
43
44extern struct cmd_list_element *detachlist;
45
d318976c
FN
46/* Chain containing all defined toggle subcommands. */
47
48extern struct cmd_list_element *togglelist;
49
50/* Chain containing all defined stop subcommands. */
51
52extern struct cmd_list_element *stoplist;
53
54/* Chain containing all defined "enable breakpoint" subcommands. */
55
56extern struct cmd_list_element *enablebreaklist;
57
58/* Chain containing all defined set subcommands */
59
60extern struct cmd_list_element *setlist;
61
62/* Chain containing all defined unset subcommands */
63
64extern struct cmd_list_element *unsetlist;
65
66/* Chain containing all defined show subcommands. */
67
68extern struct cmd_list_element *showlist;
69
70/* Chain containing all defined \"set history\". */
71
72extern struct cmd_list_element *sethistlist;
73
74/* Chain containing all defined \"show history\". */
75
76extern struct cmd_list_element *showhistlist;
77
78/* Chain containing all defined \"unset history\". */
79
80extern struct cmd_list_element *unsethistlist;
81
82/* Chain containing all defined maintenance subcommands. */
83
84extern struct cmd_list_element *maintenancelist;
85
86/* Chain containing all defined "maintenance info" subcommands. */
87
88extern struct cmd_list_element *maintenanceinfolist;
89
90/* Chain containing all defined "maintenance print" subcommands. */
91
92extern struct cmd_list_element *maintenanceprintlist;
93
94extern struct cmd_list_element *setprintlist;
95
96extern struct cmd_list_element *showprintlist;
97
98extern struct cmd_list_element *setdebuglist;
99
100extern struct cmd_list_element *showdebuglist;
101
102extern struct cmd_list_element *setchecklist;
103
104extern struct cmd_list_element *showchecklist;
105
106/* Exported to gdb/top.c */
107
108void init_cmd_lists (void);
109
110void init_cli_cmds (void);
111
bbaca940 112int is_complete_command (struct cmd_list_element *cmd);
d318976c
FN
113
114/* Exported to gdb/main.c */
115
116extern void cd_command (char *, int);
117
118/* Exported to gdb/top.c and gdb/main.c */
119
120extern void quit_command (char *, int);
121
16026cd7 122extern void source_script (char *, int);
d318976c
FN
123
124/* Used everywhere whenever at least one parameter is required and
125 none is specified. */
126
127extern NORETURN void error_no_arg (char *) ATTR_NORETURN;
128
16026cd7
AS
129/* Command tracing state. */
130
131extern int source_verbose;
132extern int trace_commands;
133
d318976c 134#endif /* !defined (CLI_CMDS_H) */