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