GDB (xrefs)
cli-cmds.h
Go to the documentation of this file.
1 /* Header file for GDB CLI command implementation library.
2  Copyright (C) 2000-2015 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 3 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, see <http://www.gnu.org/licenses/>. */
16 
17 #if !defined (CLI_CMDS_H)
18 #define CLI_CMDS_H 1
19 
20 /* Chain containing all defined commands. */
21 
22 extern struct cmd_list_element *cmdlist;
23 
24 /* Chain containing all defined info subcommands. */
25 
26 extern struct cmd_list_element *infolist;
27 
28 /* Chain containing all defined enable subcommands. */
29 
30 extern struct cmd_list_element *enablelist;
31 
32 /* Chain containing all defined disable subcommands. */
33 
34 extern struct cmd_list_element *disablelist;
35 
36 /* Chain containing all defined delete subcommands. */
37 
38 extern struct cmd_list_element *deletelist;
39 
40 /* Chain containing all defined detach subcommands. */
41 
42 extern struct cmd_list_element *detachlist;
43 
44 /* Chain containing all defined kill subcommands. */
45 
46 extern struct cmd_list_element *killlist;
47 
48 /* Chain containing all defined stop subcommands. */
49 
50 extern struct cmd_list_element *stoplist;
51 
52 /* Chain containing all defined set subcommands */
53 
54 extern struct cmd_list_element *setlist;
55 
56 /* Chain containing all defined unset subcommands */
57 
58 extern struct cmd_list_element *unsetlist;
59 
60 /* Chain containing all defined show subcommands. */
61 
62 extern struct cmd_list_element *showlist;
63 
64 /* Chain containing all defined \"set history\". */
65 
66 extern struct cmd_list_element *sethistlist;
67 
68 /* Chain containing all defined \"show history\". */
69 
70 extern struct cmd_list_element *showhistlist;
71 
72 /* Chain containing all defined \"unset history\". */
73 
74 extern struct cmd_list_element *unsethistlist;
75 
76 /* Chain containing all defined maintenance subcommands. */
77 
78 extern struct cmd_list_element *maintenancelist;
79 
80 /* Chain containing all defined "maintenance info" subcommands. */
81 
83 
84 /* Chain containing all defined "maintenance print" subcommands. */
85 
87 
88 extern struct cmd_list_element *setprintlist;
89 
90 extern struct cmd_list_element *showprintlist;
91 
92 extern struct cmd_list_element *setdebuglist;
93 
94 extern struct cmd_list_element *showdebuglist;
95 
96 extern struct cmd_list_element *setchecklist;
97 
98 extern struct cmd_list_element *showchecklist;
99 
100 /* Exported to gdb/top.c */
101 
102 void init_cmd_lists (void);
103 
104 void init_cli_cmds (void);
105 
106 int is_complete_command (struct cmd_list_element *cmd);
107 
108 /* Exported to gdb/main.c */
109 
110 extern void cd_command (char *, int);
111 
112 /* Exported to gdb/top.c and gdb/main.c */
113 
114 extern void quit_command (char *, int);
115 
116 extern void source_script (const char *, int);
117 
118 /* Exported to objfiles.c. */
119 
120 extern int find_and_open_script (const char *file, int search_path,
121  FILE **streamp, char **full_path);
122 
123 /* Command tracing state. */
124 
125 extern int source_verbose;
126 extern int trace_commands;
127 
128 #endif /* !defined (CLI_CMDS_H) */
struct cmd_list_element * maintenanceinfolist
Definition: cli-cmds.c:163
struct cmd_list_element * stoplist
Definition: cli-cmds.c:119
struct cmd_list_element * enablelist
Definition: cli-cmds.c:111
struct cmd_list_element * setdebuglist
Definition: cli-cmds.c:173
struct cmd_list_element * maintenanceprintlist
Definition: cli-cmds.c:167
int source_verbose
Definition: cli-cmds.c:183
struct cmd_list_element * detachlist
Definition: cli-cmds.c:127
void init_cmd_lists(void)
Definition: cli-cmds.c:1601
struct cmd_list_element * deletelist
Definition: cli-cmds.c:123
struct cmd_list_element * showprintlist
Definition: cli-cmds.c:171
struct cmd_list_element * showlist
Definition: cli-cmds.c:143
void quit_command(char *, int)
Definition: cli-cmds.c:343
struct cmd_list_element * showhistlist
Definition: cli-cmds.c:151
void cd_command(char *, int)
Definition: cli-cmds.c:370
struct cmd_list_element * cmdlist
Definition: cli-cmds.c:103
int trace_commands
Definition: cli-cmds.c:184
struct cmd_list_element * setprintlist
Definition: cli-cmds.c:169
struct cmd_list_element * maintenancelist
Definition: cli-cmds.c:159
struct cmd_list_element * killlist
Definition: cli-cmds.c:131
struct cmd_list_element * showchecklist
Definition: cli-cmds.c:179
struct cmd_list_element * sethistlist
Definition: cli-cmds.c:147
struct cmd_list_element * infolist
Definition: cli-cmds.c:107
struct cmd_list_element * setlist
Definition: cli-cmds.c:135
struct cmd_list_element * disablelist
Definition: cli-cmds.c:115
int find_and_open_script(const char *file, int search_path, FILE **streamp, char **full_path)
Definition: cli-cmds.c:496
void init_cli_cmds(void)
Definition: cli-cmds.c:1913
void source_script(const char *, int)
Definition: cli-cmds.c:619
struct cmd_list_element * showdebuglist
Definition: cli-cmds.c:175
struct cmd_list_element * setchecklist
Definition: cli-cmds.c:177
struct cmd_list_element * unsethistlist
Definition: cli-cmds.c:155
int is_complete_command(struct cmd_list_element *cmd)
Definition: cli-cmds.c:322
struct cmd_list_element * unsetlist
Definition: cli-cmds.c:139