GDB (xrefs)
cli-script.h
Go to the documentation of this file.
1 /* Header file for GDB CLI command implementation library.
2  Copyright (C) 2000-2015 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 3 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, see <http://www.gnu.org/licenses/>. */
16 
17 #if !defined (CLI_SCRIPT_H)
18 #define CLI_SCRIPT_H 1
19 
20 struct ui_file;
21 struct command_line;
22 struct cmd_list_element;
23 
24 /* Exported to cli/cli-cmds.c */
25 
26 extern void script_from_file (FILE *stream, const char *file);
27 
28 extern void show_user_1 (struct cmd_list_element *c,
29  const char *prefix,
30  const char *name,
31  struct ui_file *stream);
32 
33 /* Exported to gdb/breakpoint.c */
34 
35 extern enum command_control_type
37 
38 extern enum command_control_type
40 
42  char *);
43 
44 extern void print_command_lines (struct ui_out *,
45  struct command_line *, unsigned int);
46 
47 extern struct command_line * copy_command_lines (struct command_line *cmds);
48 
49 extern struct cleanup *
51 
52 /* Exported to gdb/infrun.c */
53 
54 extern void execute_user_command (struct cmd_list_element *c, char *args);
55 
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 
64 #endif /* !defined (CLI_SCRIPT_H) */
void print_command_lines(struct ui_out *, struct command_line *, unsigned int)
Definition: cli-script.c:156
command_control_type
Definition: defs.h:379
void print_command_trace(const char *cmd)
Definition: cli-script.c:424
void show_user_1(struct cmd_list_element *c, const char *prefix, const char *name, struct ui_file *stream)
Definition: cli-script.c:1728
struct cmd_list_element * prefix
Definition: cli-decode.h:162
Definition: ui-out.c:99
enum command_control_type execute_control_command_untraced(struct command_line *cmd)
Definition: cli-script.c:645
const char *const name
Definition: aarch64-tdep.c:68
struct command_line * copy_command_lines(struct command_line *cmds)
Definition: cli-script.c:1411
struct cleanup * make_cleanup_free_command_lines(struct command_line **arg)
Definition: cli-script.c:1405
struct command_line * get_command_line(enum command_control_type, char *)
Definition: cli-script.c:130
enum command_control_type execute_control_command(struct command_line *cmd)
Definition: cli-script.c:444
void reset_command_nest_depth(void)
Definition: cli-script.c:407
void script_from_file(FILE *stream, const char *file)
Definition: cli-script.c:1686
void execute_user_command(struct cmd_list_element *c, char *args)
Definition: cli-script.c:356
void * arg
Definition: cleanups.c:43