1/* Header file for GDB CLI command implementation library. 2 Copyright 2000 Free Software Foundation, Inc. 3 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. 8 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. 13 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. */ 18 19#if !defined (CLI_CMDS_H) 20#define CLI_CMDS_H 1 21 22/* Chain containing all defined commands. */ 23 24extern struct cmd_list_element *cmdlist; 25 26/* Chain containing all defined info subcommands. */ 27 28extern struct cmd_list_element *infolist; 29 30/* Chain containing all defined enable subcommands. */ 31 32extern struct cmd_list_element *enablelist; 33 34/* Chain containing all defined disable subcommands. */ 35 36extern struct cmd_list_element *disablelist; 37 38/* Chain containing all defined delete subcommands. */ 39 40extern struct cmd_list_element *deletelist; 41 42/* Chain containing all defined toggle subcommands. */ 43 44extern struct cmd_list_element *togglelist; 45 46/* Chain containing all defined stop subcommands. */ 47 48extern struct cmd_list_element *stoplist; 49 50/* Chain containing all defined "enable breakpoint" subcommands. */ 51 52extern struct cmd_list_element *enablebreaklist; 53 54/* Chain containing all defined set subcommands */ 55 56extern struct cmd_list_element *setlist; 57 58/* Chain containing all defined unset subcommands */ 59 60extern struct cmd_list_element *unsetlist; 61 62/* Chain containing all defined show subcommands. */ 63 64extern struct cmd_list_element *showlist; 65 66/* Chain containing all defined \"set history\". */ 67 68extern struct cmd_list_element *sethistlist; 69 70/* Chain containing all defined \"show history\". */ 71 72extern struct cmd_list_element *showhistlist; 73 74/* Chain containing all defined \"unset history\". */ 75 76extern struct cmd_list_element *unsethistlist; 77 78/* Chain containing all defined maintenance subcommands. */ 79 80extern struct cmd_list_element *maintenancelist; 81 82/* Chain containing all defined "maintenance info" subcommands. */ 83 84extern struct cmd_list_element *maintenanceinfolist; 85 86/* Chain containing all defined "maintenance print" subcommands. */ 87 88extern struct cmd_list_element *maintenanceprintlist; 89 90extern struct cmd_list_element *setprintlist; 91 92extern struct cmd_list_element *showprintlist; 93 94extern struct cmd_list_element *setdebuglist; 95 96extern struct cmd_list_element *showdebuglist; 97 98extern struct cmd_list_element *setchecklist; 99 100extern struct cmd_list_element *showchecklist; 101 102/* Exported to gdb/top.c */ 103 104void init_cmd_lists (void); 105 106void init_cli_cmds (void); 107 108int is_complete_command (struct cmd_list_element *cmd); 109 110/* Exported to gdb/main.c */ 111 112extern void cd_command (char *, int); 113 114/* Exported to gdb/top.c and gdb/main.c */ 115 116extern void quit_command (char *, int); 117 118extern void source_command (char *, int); 119 120/* Used everywhere whenever at least one parameter is required and 121 none is specified. */ 122 123extern NORETURN void error_no_arg (char *) ATTR_NORETURN; 124 125#endif /* !defined (CLI_CMDS_H) */ 126