Commit | Line | Data |
---|---|---|
d318976c | 1 | /* Header file for GDB CLI command implementation library. |
6aba47ca | 2 | Copyright (c) 2000, 2002, 2007 Free Software Foundation, Inc. |
d318976c FN |
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 | |
10f9c213 EZ |
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, |
17 | Boston, MA 02110-1301, USA. */ | |
d318976c FN |
18 | |
19 | #if !defined (CLI_SCRIPT_H) | |
20 | #define CLI_SCRIPT_H 1 | |
21 | ||
da3331ec AC |
22 | struct ui_file; |
23 | struct command_line; | |
24 | struct cmd_list_element; | |
25 | ||
d318976c FN |
26 | /* Exported to cli/cli-cmds.c */ |
27 | ||
28 | extern void script_from_file (FILE *stream, char *file); | |
29 | ||
30 | extern void document_command (char *, int); | |
31 | ||
32 | extern void define_command (char *, int); | |
33 | ||
34 | extern void while_command (char *arg, int from_tty); | |
35 | ||
36 | extern void if_command (char *arg, int from_tty); | |
37 | ||
38 | extern void show_user_1 (struct cmd_list_element *c, struct ui_file *stream); | |
39 | ||
40 | /* Exported to gdb/breakpoint.c */ | |
41 | ||
42 | extern enum command_control_type | |
43 | execute_control_command (struct command_line *cmd); | |
44 | ||
d318976c FN |
45 | extern void print_command_lines (struct ui_out *, |
46 | struct command_line *, unsigned int); | |
d318976c | 47 | |
e1507482 EZ |
48 | extern struct command_line * copy_command_lines (struct command_line *cmds); |
49 | ||
6c50ab1c JB |
50 | struct cleanup *make_cleanup_free_command_lines (struct command_line **arg); |
51 | ||
d318976c FN |
52 | /* Exported to gdb/infrun.c */ |
53 | ||
54 | extern void execute_user_command (struct cmd_list_element *c, char *args); | |
55 | ||
16026cd7 AS |
56 | /* Exported to top.c */ |
57 | ||
58 | extern void print_command_trace (const char *cmd); | |
59 | ||
60 | /* Exported to event-top.c */ | |
61 | ||
62 | extern void reset_command_nest_depth (void); | |
63 | ||
d318976c | 64 | #endif /* !defined (CLI_SCRIPT_H) */ |