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 | |
5 | file you are possibly doing things the old way. This file will disapear. | |
6 | fnasser@redhat.com */ | |
7 | ||
c906108c | 8 | /* Header file for GDB-specific command-line stuff. |
28e7fd62 | 9 | Copyright (C) 1986-2013 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" |
c906108c SS |
29 | |
30 | /* Chain containing all defined commands. */ | |
31 | ||
32 | extern struct cmd_list_element *cmdlist; | |
33 | ||
34 | /* Chain containing all defined info subcommands. */ | |
35 | ||
36 | extern struct cmd_list_element *infolist; | |
37 | ||
d3f17821 | 38 | /* Chain containing all defined enable subcommands. */ |
c906108c SS |
39 | |
40 | extern struct cmd_list_element *enablelist; | |
41 | ||
d3f17821 | 42 | /* Chain containing all defined disable subcommands. */ |
c906108c SS |
43 | |
44 | extern struct cmd_list_element *disablelist; | |
45 | ||
d3f17821 | 46 | /* Chain containing all defined delete subcommands. */ |
c906108c SS |
47 | |
48 | extern struct cmd_list_element *deletelist; | |
49 | ||
f73adfeb AS |
50 | /* Chain containing all defined detach subcommands. */ |
51 | ||
52 | extern struct cmd_list_element *detachlist; | |
53 | ||
2277426b PA |
54 | /* Chain containing all defined kill subcommands. */ |
55 | ||
56 | extern struct cmd_list_element *killlist; | |
57 | ||
d3f17821 | 58 | /* Chain containing all defined toggle subcommands. */ |
c906108c SS |
59 | |
60 | extern struct cmd_list_element *togglelist; | |
61 | ||
d3f17821 | 62 | /* Chain containing all defined stop subcommands. */ |
c906108c SS |
63 | |
64 | extern struct cmd_list_element *stoplist; | |
65 | ||
d3f17821 | 66 | /* Chain containing all defined set subcommands. */ |
c906108c SS |
67 | |
68 | extern struct cmd_list_element *setlist; | |
69 | ||
d3f17821 | 70 | /* Chain containing all defined unset subcommands. */ |
c906108c SS |
71 | |
72 | extern struct cmd_list_element *unsetlist; | |
73 | ||
74 | /* Chain containing all defined show subcommands. */ | |
75 | ||
76 | extern struct cmd_list_element *showlist; | |
77 | ||
78 | /* Chain containing all defined \"set history\". */ | |
79 | ||
80 | extern struct cmd_list_element *sethistlist; | |
81 | ||
82 | /* Chain containing all defined \"show history\". */ | |
83 | ||
84 | extern struct cmd_list_element *showhistlist; | |
85 | ||
86 | /* Chain containing all defined \"unset history\". */ | |
87 | ||
88 | extern struct cmd_list_element *unsethistlist; | |
89 | ||
d3f17821 | 90 | /* Chain containing all defined maintenance subcommands. */ |
c906108c SS |
91 | |
92 | extern struct cmd_list_element *maintenancelist; | |
93 | ||
d3f17821 | 94 | /* Chain containing all defined "maintenance info" subcommands. */ |
c906108c SS |
95 | |
96 | extern struct cmd_list_element *maintenanceinfolist; | |
97 | ||
d3f17821 | 98 | /* Chain containing all defined "maintenance print" subcommands. */ |
c906108c SS |
99 | |
100 | extern struct cmd_list_element *maintenanceprintlist; | |
101 | ||
d3f17821 | 102 | /* Chain containing all defined "maintenance set" subcommands. */ |
ae038cb0 DJ |
103 | |
104 | extern struct cmd_list_element *maintenance_set_cmdlist; | |
105 | ||
d3f17821 | 106 | /* Chain containing all defined "maintenance show" subcommands. */ |
ae038cb0 DJ |
107 | |
108 | extern struct cmd_list_element *maintenance_show_cmdlist; | |
109 | ||
c906108c SS |
110 | extern struct cmd_list_element *setprintlist; |
111 | ||
112 | extern struct cmd_list_element *showprintlist; | |
113 | ||
53342f27 TT |
114 | extern struct cmd_list_element *setprinttypelist; |
115 | ||
116 | extern struct cmd_list_element *showprinttypelist; | |
117 | ||
5d161b24 DB |
118 | extern struct cmd_list_element *setdebuglist; |
119 | ||
120 | extern struct cmd_list_element *showdebuglist; | |
121 | ||
c906108c SS |
122 | extern struct cmd_list_element *setchecklist; |
123 | ||
124 | extern struct cmd_list_element *showchecklist; | |
125 | ||
9291a0cd TT |
126 | /* Chain containing all defined "save" subcommands. */ |
127 | ||
128 | extern struct cmd_list_element *save_cmdlist; | |
129 | ||
a14ed312 | 130 | extern void execute_command (char *, int); |
5da1313b | 131 | extern char *execute_command_to_string (char *p, int from_tty); |
c906108c | 132 | |
a14ed312 | 133 | enum command_control_type execute_control_command (struct command_line *); |
c906108c | 134 | |
d9fcf2fb JM |
135 | extern void print_command_line (struct command_line *, unsigned int, |
136 | struct ui_file *); | |
a14ed312 KB |
137 | extern void print_command_lines (struct ui_out *, |
138 | struct command_line *, unsigned int); | |
c906108c | 139 | |
c5aa993b | 140 | #endif /* !defined (GDBCMD_H) */ |