1 /* Header file for GDB CLI command implementation library.
2 Copyright 2000 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., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, 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 toggle subcommands. */
44 extern struct cmd_list_element *togglelist;
46 /* Chain containing all defined stop subcommands. */
48 extern struct cmd_list_element *stoplist;
50 /* Chain containing all defined "enable breakpoint" subcommands. */
52 extern struct cmd_list_element *enablebreaklist;
54 /* Chain containing all defined set subcommands */
56 extern struct cmd_list_element *setlist;
58 /* Chain containing all defined unset subcommands */
60 extern struct cmd_list_element *unsetlist;
62 /* Chain containing all defined show subcommands. */
64 extern struct cmd_list_element *showlist;
66 /* Chain containing all defined \"set history\". */
68 extern struct cmd_list_element *sethistlist;
70 /* Chain containing all defined \"show history\". */
72 extern struct cmd_list_element *showhistlist;
74 /* Chain containing all defined \"unset history\". */
76 extern struct cmd_list_element *unsethistlist;
78 /* Chain containing all defined maintenance subcommands. */
80 extern struct cmd_list_element *maintenancelist;
82 /* Chain containing all defined "maintenance info" subcommands. */
84 extern struct cmd_list_element *maintenanceinfolist;
86 /* Chain containing all defined "maintenance print" subcommands. */
88 extern struct cmd_list_element *maintenanceprintlist;
90 /* Chain containing all defined "maintenance list" subcommands. */
92 extern struct cmd_list_element *maintenancelistlist;
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_command (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 #endif /* !defined (CLI_CMDS_H) */