| 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-2015 Free Software Foundation, Inc. |
| 10 | |
| 11 | This program is free software; you can redistribute it and/or modify |
| 12 | it under the terms of the GNU General Public License as published by |
| 13 | the Free Software Foundation; either version 3 of the License, or |
| 14 | (at your option) any later version. |
| 15 | |
| 16 | This program is distributed in the hope that it will be useful, |
| 17 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | GNU General Public License for more details. |
| 20 | |
| 21 | You should have received a copy of the GNU General Public License |
| 22 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
| 23 | |
| 24 | #if !defined (GDBCMD_H) |
| 25 | #define GDBCMD_H 1 |
| 26 | |
| 27 | #include "command.h" |
| 28 | #include "ui-out.h" |
| 29 | |
| 30 | /* Chain containing all defined commands. */ |
| 31 | |
| 32 | extern struct cmd_list_element *cmdlist; |
| 33 | |
| 34 | /* Chain containing all defined info subcommands. */ |
| 35 | |
| 36 | extern struct cmd_list_element *infolist; |
| 37 | |
| 38 | /* Chain containing all defined enable subcommands. */ |
| 39 | |
| 40 | extern struct cmd_list_element *enablelist; |
| 41 | |
| 42 | /* Chain containing all defined disable subcommands. */ |
| 43 | |
| 44 | extern struct cmd_list_element *disablelist; |
| 45 | |
| 46 | /* Chain containing all defined delete subcommands. */ |
| 47 | |
| 48 | extern struct cmd_list_element *deletelist; |
| 49 | |
| 50 | /* Chain containing all defined detach subcommands. */ |
| 51 | |
| 52 | extern struct cmd_list_element *detachlist; |
| 53 | |
| 54 | /* Chain containing all defined kill subcommands. */ |
| 55 | |
| 56 | extern struct cmd_list_element *killlist; |
| 57 | |
| 58 | /* Chain containing all defined stop subcommands. */ |
| 59 | |
| 60 | extern struct cmd_list_element *stoplist; |
| 61 | |
| 62 | /* Chain containing all defined set subcommands. */ |
| 63 | |
| 64 | extern struct cmd_list_element *setlist; |
| 65 | |
| 66 | /* Chain containing all defined unset subcommands. */ |
| 67 | |
| 68 | extern struct cmd_list_element *unsetlist; |
| 69 | |
| 70 | /* Chain containing all defined show subcommands. */ |
| 71 | |
| 72 | extern struct cmd_list_element *showlist; |
| 73 | |
| 74 | /* Chain containing all defined \"set history\". */ |
| 75 | |
| 76 | extern struct cmd_list_element *sethistlist; |
| 77 | |
| 78 | /* Chain containing all defined \"show history\". */ |
| 79 | |
| 80 | extern struct cmd_list_element *showhistlist; |
| 81 | |
| 82 | /* Chain containing all defined \"unset history\". */ |
| 83 | |
| 84 | extern struct cmd_list_element *unsethistlist; |
| 85 | |
| 86 | /* Chain containing all defined maintenance subcommands. */ |
| 87 | |
| 88 | extern struct cmd_list_element *maintenancelist; |
| 89 | |
| 90 | /* Chain containing all defined "maintenance info" subcommands. */ |
| 91 | |
| 92 | extern struct cmd_list_element *maintenanceinfolist; |
| 93 | |
| 94 | /* Chain containing all defined "maintenance print" subcommands. */ |
| 95 | |
| 96 | extern struct cmd_list_element *maintenanceprintlist; |
| 97 | |
| 98 | /* Chain containing all defined "maintenance set" subcommands. */ |
| 99 | |
| 100 | extern struct cmd_list_element *maintenance_set_cmdlist; |
| 101 | |
| 102 | /* Chain containing all defined "maintenance show" subcommands. */ |
| 103 | |
| 104 | extern struct cmd_list_element *maintenance_show_cmdlist; |
| 105 | |
| 106 | extern struct cmd_list_element *setprintlist; |
| 107 | |
| 108 | extern struct cmd_list_element *showprintlist; |
| 109 | |
| 110 | extern struct cmd_list_element *setprintrawlist; |
| 111 | |
| 112 | extern struct cmd_list_element *showprintrawlist; |
| 113 | |
| 114 | extern struct cmd_list_element *setprinttypelist; |
| 115 | |
| 116 | extern struct cmd_list_element *showprinttypelist; |
| 117 | |
| 118 | extern struct cmd_list_element *setdebuglist; |
| 119 | |
| 120 | extern struct cmd_list_element *showdebuglist; |
| 121 | |
| 122 | extern struct cmd_list_element *setchecklist; |
| 123 | |
| 124 | extern struct cmd_list_element *showchecklist; |
| 125 | |
| 126 | /* Chain containing all defined "save" subcommands. */ |
| 127 | |
| 128 | extern struct cmd_list_element *save_cmdlist; |
| 129 | |
| 130 | extern void execute_command (char *, int); |
| 131 | extern char *execute_command_to_string (char *p, int from_tty); |
| 132 | |
| 133 | enum command_control_type execute_control_command (struct command_line *); |
| 134 | |
| 135 | extern void print_command_line (struct command_line *, unsigned int, |
| 136 | struct ui_file *); |
| 137 | extern void print_command_lines (struct ui_out *, |
| 138 | struct command_line *, unsigned int); |
| 139 | |
| 140 | #endif /* !defined (GDBCMD_H) */ |