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