Switch the license of all .c files to GPLv3.
[deliverable/binutils-gdb.git] / gdb / cli / cli-script.h
CommitLineData
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
a9762ec7 6 the Free Software Foundation; either version 3 of the License, or
d318976c
FN
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
a9762ec7 15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
d318976c
FN
16
17#if !defined (CLI_SCRIPT_H)
18#define CLI_SCRIPT_H 1
19
da3331ec
AC
20struct ui_file;
21struct command_line;
22struct cmd_list_element;
23
d318976c
FN
24/* Exported to cli/cli-cmds.c */
25
26extern void script_from_file (FILE *stream, char *file);
27
28extern void document_command (char *, int);
29
30extern void define_command (char *, int);
31
32extern void while_command (char *arg, int from_tty);
33
34extern void if_command (char *arg, int from_tty);
35
36extern void show_user_1 (struct cmd_list_element *c, struct ui_file *stream);
37
38/* Exported to gdb/breakpoint.c */
39
40extern enum command_control_type
41 execute_control_command (struct command_line *cmd);
42
d318976c
FN
43extern void print_command_lines (struct ui_out *,
44 struct command_line *, unsigned int);
d318976c 45
e1507482
EZ
46extern struct command_line * copy_command_lines (struct command_line *cmds);
47
6c50ab1c
JB
48struct cleanup *make_cleanup_free_command_lines (struct command_line **arg);
49
d318976c
FN
50/* Exported to gdb/infrun.c */
51
52extern void execute_user_command (struct cmd_list_element *c, char *args);
53
16026cd7
AS
54/* Exported to top.c */
55
56extern void print_command_trace (const char *cmd);
57
58/* Exported to event-top.c */
59
60extern void reset_command_nest_depth (void);
61
d318976c 62#endif /* !defined (CLI_SCRIPT_H) */
This page took 0.425304 seconds and 4 git commands to generate.