15796c8dcSSimon Schubert /* Header file for GDB CLI command implementation library. 2*ef5ccd6cSJohn Marino Copyright (C) 2000-2013 Free Software Foundation, Inc. 35796c8dcSSimon Schubert 45796c8dcSSimon Schubert This program is free software; you can redistribute it and/or modify 55796c8dcSSimon Schubert it under the terms of the GNU General Public License as published by 65796c8dcSSimon Schubert the Free Software Foundation; either version 3 of the License, or 75796c8dcSSimon Schubert (at your option) any later version. 85796c8dcSSimon Schubert 95796c8dcSSimon Schubert This program is distributed in the hope that it will be useful, 105796c8dcSSimon Schubert but WITHOUT ANY WARRANTY; without even the implied warranty of 115796c8dcSSimon Schubert MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 125796c8dcSSimon Schubert GNU General Public License for more details. 135796c8dcSSimon Schubert 145796c8dcSSimon Schubert You should have received a copy of the GNU General Public License 155796c8dcSSimon Schubert along with this program. If not, see <http://www.gnu.org/licenses/>. */ 165796c8dcSSimon Schubert 175796c8dcSSimon Schubert #if !defined (CLI_SCRIPT_H) 185796c8dcSSimon Schubert #define CLI_SCRIPT_H 1 195796c8dcSSimon Schubert 205796c8dcSSimon Schubert struct ui_file; 215796c8dcSSimon Schubert struct command_line; 225796c8dcSSimon Schubert struct cmd_list_element; 235796c8dcSSimon Schubert 245796c8dcSSimon Schubert /* Exported to cli/cli-cmds.c */ 255796c8dcSSimon Schubert 26cf7f2e2dSJohn Marino extern void script_from_file (FILE *stream, const char *file); 275796c8dcSSimon Schubert 285796c8dcSSimon Schubert extern void show_user_1 (struct cmd_list_element *c, char *prefix, 295796c8dcSSimon Schubert char *name, struct ui_file *stream); 305796c8dcSSimon Schubert 315796c8dcSSimon Schubert /* Exported to gdb/breakpoint.c */ 325796c8dcSSimon Schubert 335796c8dcSSimon Schubert extern enum command_control_type 345796c8dcSSimon Schubert execute_control_command (struct command_line *cmd); 355796c8dcSSimon Schubert 365796c8dcSSimon Schubert extern enum command_control_type 375796c8dcSSimon Schubert execute_control_command_untraced (struct command_line *cmd); 385796c8dcSSimon Schubert 395796c8dcSSimon Schubert extern struct command_line *get_command_line (enum command_control_type, 405796c8dcSSimon Schubert char *); 415796c8dcSSimon Schubert 425796c8dcSSimon Schubert extern void print_command_lines (struct ui_out *, 435796c8dcSSimon Schubert struct command_line *, unsigned int); 445796c8dcSSimon Schubert 455796c8dcSSimon Schubert extern struct command_line * copy_command_lines (struct command_line *cmds); 465796c8dcSSimon Schubert 47*ef5ccd6cSJohn Marino extern struct cleanup * 48*ef5ccd6cSJohn Marino make_cleanup_free_command_lines (struct command_line **arg); 495796c8dcSSimon Schubert 505796c8dcSSimon Schubert /* Exported to gdb/infrun.c */ 515796c8dcSSimon Schubert 525796c8dcSSimon Schubert extern void execute_user_command (struct cmd_list_element *c, char *args); 535796c8dcSSimon Schubert 545796c8dcSSimon Schubert /* Exported to top.c */ 555796c8dcSSimon Schubert 565796c8dcSSimon Schubert extern void print_command_trace (const char *cmd); 575796c8dcSSimon Schubert 585796c8dcSSimon Schubert /* Exported to event-top.c */ 595796c8dcSSimon Schubert 605796c8dcSSimon Schubert extern void reset_command_nest_depth (void); 615796c8dcSSimon Schubert 625796c8dcSSimon Schubert #endif /* !defined (CLI_SCRIPT_H) */ 63