Commit | Line | Data |
---|---|---|
d318976c FN |
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 | |
30baf67b | 5 | file you are possibly doing things the old way. This file will dissapear. |
d318976c FN |
6 | fnasser@redhat.com */ |
7 | ||
c906108c | 8 | /* Header file for GDB-specific command-line stuff. |
b811d2c2 | 9 | Copyright (C) 1986-2020 Free Software Foundation, Inc. |
c906108c | 10 | |
c5aa993b JM |
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 | |
a9762ec7 | 13 | the Free Software Foundation; either version 3 of the License, or |
c5aa993b | 14 | (at your option) any later version. |
c906108c | 15 | |
c5aa993b JM |
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. | |
c906108c | 20 | |
c5aa993b | 21 | You should have received a copy of the GNU General Public License |
a9762ec7 | 22 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
c906108c SS |
23 | |
24 | #if !defined (GDBCMD_H) | |
25 | #define GDBCMD_H 1 | |
26 | ||
27 | #include "command.h" | |
8b93c638 | 28 | #include "ui-out.h" |
6b66338c | 29 | #include "cli/cli-script.h" |
c906108c SS |
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 | ||
d3f17821 | 39 | /* Chain containing all defined enable subcommands. */ |
c906108c SS |
40 | |
41 | extern struct cmd_list_element *enablelist; | |
42 | ||
d3f17821 | 43 | /* Chain containing all defined disable subcommands. */ |
c906108c SS |
44 | |
45 | extern struct cmd_list_element *disablelist; | |
46 | ||
d3f17821 | 47 | /* Chain containing all defined delete subcommands. */ |
c906108c SS |
48 | |
49 | extern struct cmd_list_element *deletelist; | |
50 | ||
f73adfeb AS |
51 | /* Chain containing all defined detach subcommands. */ |
52 | ||
53 | extern struct cmd_list_element *detachlist; | |
54 | ||
2277426b PA |
55 | /* Chain containing all defined kill subcommands. */ |
56 | ||
57 | extern struct cmd_list_element *killlist; | |
58 | ||
d3f17821 | 59 | /* Chain containing all defined stop subcommands. */ |
c906108c SS |
60 | |
61 | extern struct cmd_list_element *stoplist; | |
62 | ||
d3f17821 | 63 | /* Chain containing all defined set subcommands. */ |
c906108c SS |
64 | |
65 | extern struct cmd_list_element *setlist; | |
66 | ||
d3f17821 | 67 | /* Chain containing all defined unset subcommands. */ |
c906108c SS |
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 | ||
d3f17821 | 87 | /* Chain containing all defined maintenance subcommands. */ |
c906108c SS |
88 | |
89 | extern struct cmd_list_element *maintenancelist; | |
90 | ||
d3f17821 | 91 | /* Chain containing all defined "maintenance info" subcommands. */ |
c906108c SS |
92 | |
93 | extern struct cmd_list_element *maintenanceinfolist; | |
94 | ||
d3f17821 | 95 | /* Chain containing all defined "maintenance print" subcommands. */ |
c906108c SS |
96 | |
97 | extern struct cmd_list_element *maintenanceprintlist; | |
98 | ||
27d41eac YQ |
99 | /* Chain containing all defined "maintenance check" subcommands. */ |
100 | ||
101 | extern struct cmd_list_element *maintenancechecklist; | |
102 | ||
d3f17821 | 103 | /* Chain containing all defined "maintenance set" subcommands. */ |
ae038cb0 DJ |
104 | |
105 | extern struct cmd_list_element *maintenance_set_cmdlist; | |
106 | ||
d3f17821 | 107 | /* Chain containing all defined "maintenance show" subcommands. */ |
ae038cb0 DJ |
108 | |
109 | extern struct cmd_list_element *maintenance_show_cmdlist; | |
110 | ||
c906108c SS |
111 | extern struct cmd_list_element *setprintlist; |
112 | ||
113 | extern struct cmd_list_element *showprintlist; | |
114 | ||
e7045703 DE |
115 | extern struct cmd_list_element *setprintrawlist; |
116 | ||
117 | extern struct cmd_list_element *showprintrawlist; | |
118 | ||
53342f27 TT |
119 | extern struct cmd_list_element *setprinttypelist; |
120 | ||
121 | extern struct cmd_list_element *showprinttypelist; | |
122 | ||
5d161b24 DB |
123 | extern struct cmd_list_element *setdebuglist; |
124 | ||
125 | extern struct cmd_list_element *showdebuglist; | |
126 | ||
c906108c SS |
127 | extern struct cmd_list_element *setchecklist; |
128 | ||
129 | extern struct cmd_list_element *showchecklist; | |
130 | ||
9291a0cd TT |
131 | /* Chain containing all defined "save" subcommands. */ |
132 | ||
133 | extern struct cmd_list_element *save_cmdlist; | |
134 | ||
95a6b0a1 | 135 | extern void execute_command (const char *, int); |
8a522c6c PW |
136 | |
137 | /* Execute command P and returns its output. If TERM_OUT, | |
138 | the output is built using terminal output behaviour such | |
139 | as cli_styling. */ | |
140 | extern std::string execute_command_to_string (const char *p, int from_tty, | |
141 | bool term_out); | |
b8fd0918 PW |
142 | extern void execute_command_to_ui_file (struct ui_file *file, |
143 | const char *p, int from_tty); | |
c906108c | 144 | |
d9fcf2fb JM |
145 | extern void print_command_line (struct command_line *, unsigned int, |
146 | struct ui_file *); | |
a14ed312 KB |
147 | extern void print_command_lines (struct ui_out *, |
148 | struct command_line *, unsigned int); | |
c906108c | 149 | |
c5aa993b | 150 | #endif /* !defined (GDBCMD_H) */ |