GDB (xrefs)

/tmp/gdb-8.1/gdb/gdbcmd.h
Go to the documentation of this file.
1 /* ***DEPRECATED*** The gdblib files must not be calling/using things in any
2 of the possible command languages. If necessary, a hook (that may be
3 present or not) must be used and set to the appropriate routine by any
4 command language that cares about it. If you are having to include this
5 file you are possibly doing things the old way. This file will disapear.
6 fnasser@redhat.com */
7
8 /* Header file for GDB-specific command-line stuff.
9 Copyright (C) 1986-2018 Free Software Foundation, Inc.
10
11 This program is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 3 of the License, or
14 (at your option) any later version.
15
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with this program. If not, see <http://www.gnu.org/licenses/>. */
23
24 #if !defined (GDBCMD_H)
25 #define GDBCMD_H 1
26
27 #include "command.h"
28 #include "ui-out.h"
29 #include "cli/cli-script.h"
30
31 /* Chain containing all defined commands. */
32
33 extern struct cmd_list_element *cmdlist;
34
35 /* Chain containing all defined info subcommands. */
36
37 extern struct cmd_list_element *infolist;
38
39 /* Chain containing all defined enable subcommands. */
40
41 extern struct cmd_list_element *enablelist;
42
43 /* Chain containing all defined disable subcommands. */
44
45 extern struct cmd_list_element *disablelist;
46
47 /* Chain containing all defined delete subcommands. */
48
49 extern struct cmd_list_element *deletelist;
50
51 /* Chain containing all defined detach subcommands. */
52
53 extern struct cmd_list_element *detachlist;
54
55 /* Chain containing all defined kill subcommands. */
56
57 extern struct cmd_list_element *killlist;
58
59 /* Chain containing all defined stop subcommands. */
60
61 extern struct cmd_list_element *stoplist;
62
63 /* Chain containing all defined set subcommands. */
64
65 extern struct cmd_list_element *setlist;
66
67 /* Chain containing all defined unset subcommands. */
68
69 extern struct cmd_list_element *unsetlist;
70
71 /* Chain containing all defined show subcommands. */
72
73 extern struct cmd_list_element *showlist;
74
75 /* Chain containing all defined \"set history\". */
76
77 extern struct cmd_list_element *sethistlist;
78
79 /* Chain containing all defined \"show history\". */
80
81 extern struct cmd_list_element *showhistlist;
82
83 /* Chain containing all defined \"unset history\". */
84
85 extern struct cmd_list_element *unsethistlist;
86
87 /* Chain containing all defined maintenance subcommands. */
88
89 extern struct cmd_list_element *maintenancelist;
90
91 /* Chain containing all defined "maintenance info" subcommands. */
92
93 extern struct cmd_list_element *maintenanceinfolist;
94
95 /* Chain containing all defined "maintenance print" subcommands. */
96
97 extern struct cmd_list_element *maintenanceprintlist;
98
99 /* Chain containing all defined "maintenance check" subcommands. */
100
101 extern struct cmd_list_element *maintenancechecklist;
102
103 /* Chain containing all defined "maintenance set" subcommands. */
104
105 extern struct cmd_list_element *maintenance_set_cmdlist;
106
107 /* Chain containing all defined "maintenance show" subcommands. */
108
109 extern struct cmd_list_element *maintenance_show_cmdlist;
110
111 extern struct cmd_list_element *setprintlist;
112
113 extern struct cmd_list_element *showprintlist;
114
115 extern struct cmd_list_element *setprintrawlist;
116
117 extern struct cmd_list_element *showprintrawlist;
118
119 extern struct cmd_list_element *setprinttypelist;
120
121 extern struct cmd_list_element *showprinttypelist;
122
123 extern struct cmd_list_element *setdebuglist;
124
125 extern struct cmd_list_element *showdebuglist;
126
127 extern struct cmd_list_element *setchecklist;
128
129 extern struct cmd_list_element *showchecklist;
130
131 /* Chain containing all defined "save" subcommands. */
132
133 extern struct cmd_list_element *save_cmdlist;
134
135 extern void execute_command (const char *, int);
136 extern std::string execute_command_to_string (const char *p, int from_tty);
137
138 enum command_control_type execute_control_command (struct command_line *);
139
140 extern void print_command_line (struct command_line *, unsigned int,
141 struct ui_file *);
142 extern void print_command_lines (struct ui_out *,
143 struct command_line *, unsigned int);
144
145 #endif /* !defined (GDBCMD_H) */
string
const char * string
Definition: signals.c:50
showdebuglist
struct cmd_list_element * showdebuglist
Definition: cli-cmds.c:155
print_command_lines
void print_command_lines(struct ui_out *, struct command_line *, unsigned int)
Definition: cli-script.c:189
command_line
Definition: cli-script.h:51
maintenancechecklist
struct cmd_list_element * maintenancechecklist
Definition: cli-cmds.c:147
showhistlist
struct cmd_list_element * showhistlist
Definition: cli-cmds.c:127
command.h
cmd_list_element
Definition: cli-decode.h:46
disablelist
struct cmd_list_element * disablelist
Definition: cli-cmds.c:91
showlist
struct cmd_list_element * showlist
Definition: cli-cmds.c:119
ui_file
Definition: ui-file.h:26
setdebuglist
struct cmd_list_element * setdebuglist
Definition: cli-cmds.c:153
maintenance_set_cmdlist
struct cmd_list_element * maintenance_set_cmdlist
Definition: maint.c:634
showprintrawlist
struct cmd_list_element * showprintrawlist
Definition: valprint.c:78
execute_command
void execute_command(const char *, int)
Definition: top.c:540
execute_command_to_string
std::string execute_command_to_string(const char *p, int from_tty)
Definition: top.c:655
execute_control_command
enum command_control_type execute_control_command(struct command_line *)
Definition: cli-script.c:650
setprintrawlist
struct cmd_list_element * setprintrawlist
Definition: valprint.c:77
maintenanceprintlist
struct cmd_list_element * maintenanceprintlist
Definition: cli-cmds.c:143
cli-script.h
command_control_type
command_control_type
Definition: cli-script.h:33
unsethistlist
struct cmd_list_element * unsethistlist
Definition: cli-cmds.c:131
showprinttypelist
struct cmd_list_element * showprinttypelist
Definition: typeprint.c:683
stoplist
struct cmd_list_element * stoplist
Definition: cli-cmds.c:95
showchecklist
struct cmd_list_element * showchecklist
Definition: cli-cmds.c:159
deletelist
struct cmd_list_element * deletelist
Definition: cli-cmds.c:99
sethistlist
struct cmd_list_element * sethistlist
Definition: cli-cmds.c:123
infolist
struct cmd_list_element * infolist
Definition: cli-cmds.c:83
setlist
struct cmd_list_element * setlist
Definition: cli-cmds.c:111
cmdlist
struct cmd_list_element * cmdlist
Definition: cli-cmds.c:79
ui_out
Definition: ui-out.h:77
maintenancelist
struct cmd_list_element * maintenancelist
Definition: cli-cmds.c:135
detachlist
struct cmd_list_element * detachlist
Definition: cli-cmds.c:103
killlist
struct cmd_list_element * killlist
Definition: cli-cmds.c:107
print_command_line
void print_command_line(struct command_line *, unsigned int, struct ui_file *)
maintenanceinfolist
struct cmd_list_element * maintenanceinfolist
Definition: cli-cmds.c:139
setprinttypelist
struct cmd_list_element * setprinttypelist
Definition: typeprint.c:681
setchecklist
struct cmd_list_element * setchecklist
Definition: cli-cmds.c:157
save_cmdlist
struct cmd_list_element * save_cmdlist
enablelist
struct cmd_list_element * enablelist
Definition: cli-cmds.c:87
maintenance_show_cmdlist
struct cmd_list_element * maintenance_show_cmdlist
Definition: maint.c:635
showprintlist
struct cmd_list_element * showprintlist
Definition: cli-cmds.c:151
unsetlist
struct cmd_list_element * unsetlist
Definition: cli-cmds.c:115
setprintlist
struct cmd_list_element * setprintlist
Definition: cli-cmds.c:149
ui-out.h