198944Sobrien/* ***DEPRECATED***  The gdblib files must not be calling/using things in any
298944Sobrien   of the possible command languages.  If necessary, a hook (that may be
398944Sobrien   present or not) must be used and set to the appropriate routine by any
498944Sobrien   command language that cares about it.  If you are having to include this
598944Sobrien   file you are possibly doing things the old way.  This file will disapear.
698944Sobrien   fnasser@redhat.com    */
798944Sobrien
819370Spst/* Header file for GDB-specific command-line stuff.
998944Sobrien   Copyright 1986, 1989, 1990, 1991, 1992, 1993, 1994, 1998, 1999,
1098944Sobrien   2000, 2002 Free Software Foundation, Inc.
1119370Spst
1298944Sobrien   This program is free software; you can redistribute it and/or modify
1398944Sobrien   it under the terms of the GNU General Public License as published by
1498944Sobrien   the Free Software Foundation; either version 2 of the License, or
1598944Sobrien   (at your option) any later version.
1619370Spst
1798944Sobrien   This program is distributed in the hope that it will be useful,
1898944Sobrien   but WITHOUT ANY WARRANTY; without even the implied warranty of
1998944Sobrien   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2098944Sobrien   GNU General Public License for more details.
2119370Spst
2298944Sobrien   You should have received a copy of the GNU General Public License
2398944Sobrien   along with this program; if not, write to the Free Software
2498944Sobrien   Foundation, Inc., 59 Temple Place - Suite 330,
2598944Sobrien   Boston, MA 02111-1307, USA.  */
2619370Spst
2719370Spst#if !defined (GDBCMD_H)
2819370Spst#define GDBCMD_H 1
2919370Spst
3019370Spst#include "command.h"
3198944Sobrien#include "ui-out.h"
3219370Spst
3319370Spst/* Chain containing all defined commands.  */
3419370Spst
3519370Spstextern struct cmd_list_element *cmdlist;
3619370Spst
3719370Spst/* Chain containing all defined info subcommands.  */
3819370Spst
3919370Spstextern struct cmd_list_element *infolist;
4019370Spst
4119370Spst/* Chain containing all defined enable subcommands. */
4219370Spst
4319370Spstextern struct cmd_list_element *enablelist;
4419370Spst
4519370Spst/* Chain containing all defined disable subcommands. */
4619370Spst
4719370Spstextern struct cmd_list_element *disablelist;
4819370Spst
4919370Spst/* Chain containing all defined delete subcommands. */
5019370Spst
5119370Spstextern struct cmd_list_element *deletelist;
5219370Spst
5346283Sdfr/* Chain containing all defined toggle subcommands. */
5446283Sdfr
5546283Sdfrextern struct cmd_list_element *togglelist;
5646283Sdfr
5746283Sdfr/* Chain containing all defined stop subcommands. */
5846283Sdfr
5946283Sdfrextern struct cmd_list_element *stoplist;
6046283Sdfr
6119370Spst/* Chain containing all defined "enable breakpoint" subcommands. */
6219370Spst
6319370Spstextern struct cmd_list_element *enablebreaklist;
6419370Spst
6519370Spst/* Chain containing all defined set subcommands */
6619370Spst
6719370Spstextern struct cmd_list_element *setlist;
6819370Spst
6919370Spst/* Chain containing all defined unset subcommands */
7019370Spst
7119370Spstextern struct cmd_list_element *unsetlist;
7219370Spst
7319370Spst/* Chain containing all defined show subcommands.  */
7419370Spst
7519370Spstextern struct cmd_list_element *showlist;
7619370Spst
7719370Spst/* Chain containing all defined \"set history\".  */
7819370Spst
7919370Spstextern struct cmd_list_element *sethistlist;
8019370Spst
8119370Spst/* Chain containing all defined \"show history\".  */
8219370Spst
8319370Spstextern struct cmd_list_element *showhistlist;
8419370Spst
8519370Spst/* Chain containing all defined \"unset history\".  */
8619370Spst
8719370Spstextern struct cmd_list_element *unsethistlist;
8819370Spst
8919370Spst/* Chain containing all defined maintenance subcommands. */
9019370Spst
9119370Spstextern struct cmd_list_element *maintenancelist;
9219370Spst
9319370Spst/* Chain containing all defined "maintenance info" subcommands. */
9419370Spst
9519370Spstextern struct cmd_list_element *maintenanceinfolist;
9619370Spst
9719370Spst/* Chain containing all defined "maintenance print" subcommands. */
9819370Spst
9919370Spstextern struct cmd_list_element *maintenanceprintlist;
10019370Spst
10119370Spstextern struct cmd_list_element *setprintlist;
10219370Spst
10319370Spstextern struct cmd_list_element *showprintlist;
10419370Spst
10598944Sobrienextern struct cmd_list_element *setdebuglist;
10698944Sobrien
10798944Sobrienextern struct cmd_list_element *showdebuglist;
10898944Sobrien
10919370Spstextern struct cmd_list_element *setchecklist;
11019370Spst
11119370Spstextern struct cmd_list_element *showchecklist;
11219370Spst
11398944Sobrienextern void execute_command (char *, int);
11419370Spst
11598944Sobrienenum command_control_type execute_control_command (struct command_line *);
11619370Spst
11798944Sobrienextern void print_command_line (struct command_line *, unsigned int,
11898944Sobrien				struct ui_file *);
11998944Sobrienextern void print_command_lines (struct ui_out *,
12098944Sobrien				 struct command_line *, unsigned int);
12119370Spst
12298944Sobrien#endif /* !defined (GDBCMD_H) */
123