]>
git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/cli/cli-script.h
1 /* Header file for GDB CLI command implementation library.
2 Copyright (c) 2000-2013 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 3 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, see <http://www.gnu.org/licenses/>. */
17 #if !defined (CLI_SCRIPT_H)
18 #define CLI_SCRIPT_H 1
22 struct cmd_list_element
;
24 /* Exported to cli/cli-cmds.c */
26 extern void script_from_file (FILE *stream
, const char *file
);
28 extern void show_user_1 (struct cmd_list_element
*c
, char *prefix
,
29 char *name
, struct ui_file
*stream
);
31 /* Exported to gdb/breakpoint.c */
33 extern enum command_control_type
34 execute_control_command (struct command_line
*cmd
);
36 extern enum command_control_type
37 execute_control_command_untraced (struct command_line
*cmd
);
39 extern struct command_line
*get_command_line (enum command_control_type
,
42 extern void print_command_lines (struct ui_out
*,
43 struct command_line
*, unsigned int);
45 extern struct command_line
* copy_command_lines (struct command_line
*cmds
);
47 struct cleanup
*make_cleanup_free_command_lines (struct command_line
**arg
);
49 /* Exported to gdb/infrun.c */
51 extern void execute_user_command (struct cmd_list_element
*c
, char *args
);
53 /* Exported to top.c */
55 extern void print_command_trace (const char *cmd
);
57 /* Exported to event-top.c */
59 extern void reset_command_nest_depth (void);
61 #endif /* !defined (CLI_SCRIPT_H) */