1 /* Header file for GDB CLI command implementation library.
2 Copyright (c) 2000,2006 Free Software Foundation, Inc.
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA. */
19 #if !defined (CLI_CMDS_H)
22 /* Chain containing all defined commands. */
24 extern struct cmd_list_element *cmdlist;
26 /* Chain containing all defined info subcommands. */
28 extern struct cmd_list_element *infolist;
30 /* Chain containing all defined enable subcommands. */
32 extern struct cmd_list_element *enablelist;
34 /* Chain containing all defined disable subcommands. */
36 extern struct cmd_list_element *disablelist;
38 /* Chain containing all defined delete subcommands. */
40 extern struct cmd_list_element *deletelist;
42 /* Chain containing all defined detach subcommands. */
44 extern struct cmd_list_element *detachlist;
46 /* Chain containing all defined toggle subcommands. */
48 extern struct cmd_list_element *togglelist;
50 /* Chain containing all defined stop subcommands. */
52 extern struct cmd_list_element *stoplist;
54 /* Chain containing all defined "enable breakpoint" subcommands. */
56 extern struct cmd_list_element *enablebreaklist;
58 /* Chain containing all defined set subcommands */
60 extern struct cmd_list_element *setlist;
62 /* Chain containing all defined unset subcommands */
64 extern struct cmd_list_element *unsetlist;
66 /* Chain containing all defined show subcommands. */
68 extern struct cmd_list_element *showlist;
70 /* Chain containing all defined \"set history\". */
72 extern struct cmd_list_element *sethistlist;
74 /* Chain containing all defined \"show history\". */
76 extern struct cmd_list_element *showhistlist;
78 /* Chain containing all defined \"unset history\". */
80 extern struct cmd_list_element *unsethistlist;
82 /* Chain containing all defined maintenance subcommands. */
84 extern struct cmd_list_element *maintenancelist;
86 /* Chain containing all defined "maintenance info" subcommands. */
88 extern struct cmd_list_element *maintenanceinfolist;
90 /* Chain containing all defined "maintenance print" subcommands. */
92 extern struct cmd_list_element *maintenanceprintlist;
94 extern struct cmd_list_element *setprintlist;
96 extern struct cmd_list_element *showprintlist;
98 extern struct cmd_list_element *setdebuglist;
100 extern struct cmd_list_element *showdebuglist;
102 extern struct cmd_list_element *setchecklist;
104 extern struct cmd_list_element *showchecklist;
106 /* Exported to gdb/top.c */
108 void init_cmd_lists (void);
110 void init_cli_cmds (void);
112 int is_complete_command (struct cmd_list_element *cmd);
114 /* Exported to gdb/main.c */
116 extern void cd_command (char *, int);
118 /* Exported to gdb/top.c and gdb/main.c */
120 extern void quit_command (char *, int);
122 extern void source_script (char *, int);
124 /* Used everywhere whenever at least one parameter is required and
125 none is specified. */
127 extern NORETURN void error_no_arg (char *) ATTR_NORETURN;
129 /* Command tracing state. */
131 extern int source_verbose;
132 extern int trace_commands;
134 #endif /* !defined (CLI_CMDS_H) */