2011-10-06 Justin Lebar <justin.lebar@gmail.com>
[deliverable/binutils-gdb.git] / gdb / cli / cli-cmds.h
CommitLineData
d318976c 1/* Header file for GDB CLI command implementation library.
7b6bb8da
JB
2 Copyright (c) 2000,2006,2007,2008,2009,2010,2011
3 Free Software Foundation, Inc.
d318976c
FN
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
a9762ec7 7 the Free Software Foundation; either version 3 of the License, or
d318976c
FN
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
a9762ec7 16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
d318976c
FN
17
18#if !defined (CLI_CMDS_H)
19#define CLI_CMDS_H 1
20
21/* Chain containing all defined commands. */
22
23extern struct cmd_list_element *cmdlist;
24
25/* Chain containing all defined info subcommands. */
26
27extern struct cmd_list_element *infolist;
28
ebcd3b23 29/* Chain containing all defined enable subcommands. */
d318976c
FN
30
31extern struct cmd_list_element *enablelist;
32
ebcd3b23 33/* Chain containing all defined disable subcommands. */
d318976c
FN
34
35extern struct cmd_list_element *disablelist;
36
ebcd3b23 37/* Chain containing all defined delete subcommands. */
d318976c
FN
38
39extern struct cmd_list_element *deletelist;
40
ebcd3b23 41/* Chain containing all defined detach subcommands. */
f73adfeb
AS
42
43extern struct cmd_list_element *detachlist;
44
2277426b
PA
45/* Chain containing all defined kill subcommands. */
46
47extern struct cmd_list_element *killlist;
48
ebcd3b23 49/* Chain containing all defined toggle subcommands. */
d318976c
FN
50
51extern struct cmd_list_element *togglelist;
52
ebcd3b23 53/* Chain containing all defined stop subcommands. */
d318976c
FN
54
55extern struct cmd_list_element *stoplist;
56
ebcd3b23 57/* Chain containing all defined "enable breakpoint" subcommands. */
d318976c
FN
58
59extern struct cmd_list_element *enablebreaklist;
60
61/* Chain containing all defined set subcommands */
62
63extern struct cmd_list_element *setlist;
64
65/* Chain containing all defined unset subcommands */
66
67extern struct cmd_list_element *unsetlist;
68
69/* Chain containing all defined show subcommands. */
70
71extern struct cmd_list_element *showlist;
72
73/* Chain containing all defined \"set history\". */
74
75extern struct cmd_list_element *sethistlist;
76
77/* Chain containing all defined \"show history\". */
78
79extern struct cmd_list_element *showhistlist;
80
81/* Chain containing all defined \"unset history\". */
82
83extern struct cmd_list_element *unsethistlist;
84
ebcd3b23 85/* Chain containing all defined maintenance subcommands. */
d318976c
FN
86
87extern struct cmd_list_element *maintenancelist;
88
ebcd3b23 89/* Chain containing all defined "maintenance info" subcommands. */
d318976c
FN
90
91extern struct cmd_list_element *maintenanceinfolist;
92
ebcd3b23 93/* Chain containing all defined "maintenance print" subcommands. */
d318976c
FN
94
95extern struct cmd_list_element *maintenanceprintlist;
96
97extern struct cmd_list_element *setprintlist;
98
99extern struct cmd_list_element *showprintlist;
100
101extern struct cmd_list_element *setdebuglist;
102
103extern struct cmd_list_element *showdebuglist;
104
105extern struct cmd_list_element *setchecklist;
106
107extern struct cmd_list_element *showchecklist;
108
1bfeeb0f
JL
109extern struct cmd_list_element *skiplist;
110
d318976c
FN
111/* Exported to gdb/top.c */
112
113void init_cmd_lists (void);
114
115void init_cli_cmds (void);
116
bbaca940 117int is_complete_command (struct cmd_list_element *cmd);
d318976c
FN
118
119/* Exported to gdb/main.c */
120
121extern void cd_command (char *, int);
122
123/* Exported to gdb/top.c and gdb/main.c */
124
125extern void quit_command (char *, int);
126
16026cd7 127extern void source_script (char *, int);
d318976c 128
8a1ea21f
DE
129/* Exported to objfiles.c. */
130
131extern int find_and_open_script (const char *file, int search_path,
132 FILE **streamp, char **full_path);
133
16026cd7
AS
134/* Command tracing state. */
135
136extern int source_verbose;
137extern int trace_commands;
138
d318976c 139#endif /* !defined (CLI_CMDS_H) */
This page took 0.689572 seconds and 4 git commands to generate.