198944Sobrien/* Header file for GDB CLI command implementation library. 298944Sobrien Copyright 2000, 2002 Free Software Foundation, Inc. 398944Sobrien 498944Sobrien This program is free software; you can redistribute it and/or modify 598944Sobrien it under the terms of the GNU General Public License as published by 698944Sobrien the Free Software Foundation; either version 2 of the License, or 798944Sobrien (at your option) any later version. 898944Sobrien 998944Sobrien This program is distributed in the hope that it will be useful, 1098944Sobrien but WITHOUT ANY WARRANTY; without even the implied warranty of 1198944Sobrien MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1298944Sobrien GNU General Public License for more details. 1398944Sobrien 1498944Sobrien You should have received a copy of the GNU General Public License 1598944Sobrien along with this program; if not, write to the Free Software 1698944Sobrien Foundation, Inc., 59 Temple Place - Suite 330, 1798944Sobrien Boston, MA 02111-1307, USA. */ 1898944Sobrien 1998944Sobrien#if !defined (CLI_SCRIPT_H) 2098944Sobrien#define CLI_SCRIPT_H 1 2198944Sobrien 22130803Smarcelstruct ui_file; 23130803Smarcelstruct command_line; 24130803Smarcelstruct cmd_list_element; 25130803Smarcel 2698944Sobrien/* Exported to cli/cli-cmds.c */ 2798944Sobrien 2898944Sobrienextern void script_from_file (FILE *stream, char *file); 2998944Sobrien 3098944Sobrienextern void document_command (char *, int); 3198944Sobrien 3298944Sobrienextern void define_command (char *, int); 3398944Sobrien 3498944Sobrienextern void while_command (char *arg, int from_tty); 3598944Sobrien 3698944Sobrienextern void if_command (char *arg, int from_tty); 3798944Sobrien 3898944Sobrienextern void show_user_1 (struct cmd_list_element *c, struct ui_file *stream); 3998944Sobrien 4098944Sobrien/* Exported to gdb/breakpoint.c */ 4198944Sobrien 4298944Sobrienextern enum command_control_type 4398944Sobrien execute_control_command (struct command_line *cmd); 4498944Sobrien 4598944Sobrienextern void print_command_lines (struct ui_out *, 4698944Sobrien struct command_line *, unsigned int); 4798944Sobrien 48130803Smarcelextern struct command_line * copy_command_lines (struct command_line *cmds); 49130803Smarcel 50130803Smarcelstruct cleanup *make_cleanup_free_command_lines (struct command_line **arg); 51130803Smarcel 5298944Sobrien/* Exported to gdb/infrun.c */ 5398944Sobrien 5498944Sobrienextern void execute_user_command (struct cmd_list_element *c, char *args); 5598944Sobrien 5698944Sobrien#endif /* !defined (CLI_SCRIPT_H) */ 57