gdb/
[deliverable/binutils-gdb.git] / gdb / gdbcmd.h
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, 1989, 1990, 1991, 1992, 1993, 1994, 1998, 1999, 2000,
10 2002, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
11
12 This program is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 3 of the License, or
15 (at your option) any later version.
16
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with this program. If not, see <http://www.gnu.org/licenses/>. */
24
25 #if !defined (GDBCMD_H)
26 #define GDBCMD_H 1
27
28 #include "command.h"
29 #include "ui-out.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 toggle subcommands. */
60
61 extern struct cmd_list_element *togglelist;
62
63 /* Chain containing all defined stop subcommands. */
64
65 extern struct cmd_list_element *stoplist;
66
67 /* Chain containing all defined "enable breakpoint" subcommands. */
68
69 extern struct cmd_list_element *enablebreaklist;
70
71 /* Chain containing all defined set subcommands. */
72
73 extern struct cmd_list_element *setlist;
74
75 /* Chain containing all defined unset subcommands. */
76
77 extern struct cmd_list_element *unsetlist;
78
79 /* Chain containing all defined show subcommands. */
80
81 extern struct cmd_list_element *showlist;
82
83 /* Chain containing all defined \"set history\". */
84
85 extern struct cmd_list_element *sethistlist;
86
87 /* Chain containing all defined \"show history\". */
88
89 extern struct cmd_list_element *showhistlist;
90
91 /* Chain containing all defined \"unset history\". */
92
93 extern struct cmd_list_element *unsethistlist;
94
95 /* Chain containing all defined maintenance subcommands. */
96
97 extern struct cmd_list_element *maintenancelist;
98
99 /* Chain containing all defined "maintenance info" subcommands. */
100
101 extern struct cmd_list_element *maintenanceinfolist;
102
103 /* Chain containing all defined "maintenance print" subcommands. */
104
105 extern struct cmd_list_element *maintenanceprintlist;
106
107 /* Chain containing all defined "maintenance set" subcommands. */
108
109 extern struct cmd_list_element *maintenance_set_cmdlist;
110
111 /* Chain containing all defined "maintenance show" subcommands. */
112
113 extern struct cmd_list_element *maintenance_show_cmdlist;
114
115 extern struct cmd_list_element *setprintlist;
116
117 extern struct cmd_list_element *showprintlist;
118
119 extern struct cmd_list_element *setdebuglist;
120
121 extern struct cmd_list_element *showdebuglist;
122
123 extern struct cmd_list_element *setchecklist;
124
125 extern struct cmd_list_element *showchecklist;
126
127 /* Chain containing all defined "save" subcommands. */
128
129 extern struct cmd_list_element *save_cmdlist;
130
131 extern void execute_command (char *, int);
132 extern char *execute_command_to_string (char *p, int from_tty);
133
134 enum command_control_type execute_control_command (struct command_line *);
135
136 extern void print_command_line (struct command_line *, unsigned int,
137 struct ui_file *);
138 extern void print_command_lines (struct ui_out *,
139 struct command_line *, unsigned int);
140
141 #endif /* !defined (GDBCMD_H) */
This page took 0.034932 seconds and 4 git commands to generate.