xref: /openbsd-src/gnu/usr.bin/binutils/gdb/cli/cli-setshow.h (revision b725ae7711052a2233e31a66fefb8a752c388d7a)
1*b725ae77Skettenis /* Header file for GDB CLI set and show commands implementation.
2*b725ae77Skettenis    Copyright 2000, 2001 Free Software Foundation, Inc.
3*b725ae77Skettenis 
4*b725ae77Skettenis    This program is free software; you can redistribute it and/or modify
5*b725ae77Skettenis    it under the terms of the GNU General Public License as published by
6*b725ae77Skettenis    the Free Software Foundation; either version 2 of the License, or
7*b725ae77Skettenis    (at your option) any later version.
8*b725ae77Skettenis 
9*b725ae77Skettenis    This program is distributed in the hope that it will be useful,
10*b725ae77Skettenis    but WITHOUT ANY WARRANTY; without even the implied warranty of
11*b725ae77Skettenis    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12*b725ae77Skettenis    GNU General Public License for more details.
13*b725ae77Skettenis 
14*b725ae77Skettenis    You should have received a copy of the GNU General Public License
15*b725ae77Skettenis    along with this program; if not, write to the Free Software
16*b725ae77Skettenis    Foundation, Inc., 59 Temple Place - Suite 330,
17*b725ae77Skettenis    Boston, MA 02111-1307, USA.  */
18*b725ae77Skettenis 
19*b725ae77Skettenis #if !defined (CLI_SETSHOW_H)
20*b725ae77Skettenis #define CLI_SETSHOW_H 1
21*b725ae77Skettenis 
22*b725ae77Skettenis struct cmd_list_element;
23*b725ae77Skettenis 
24*b725ae77Skettenis /* Exported to cli/cli-cmds.c and gdb/top.c */
25*b725ae77Skettenis 
26*b725ae77Skettenis /* Do a "set" or "show" command.  ARG is NULL if no argument, or the text
27*b725ae77Skettenis    of the argument, and FROM_TTY is nonzero if this command is being entered
28*b725ae77Skettenis    directly by the user (i.e. these are just like any other
29*b725ae77Skettenis    command).  C is the command list element for the command.  */
30*b725ae77Skettenis extern void do_setshow_command (char *arg, int from_tty,
31*b725ae77Skettenis 				struct cmd_list_element *c);
32*b725ae77Skettenis 
33*b725ae77Skettenis /* Exported to cli/cli-cmds.c and gdb/top.c, language.c and valprint.c */
34*b725ae77Skettenis 
35*b725ae77Skettenis extern void cmd_show_list (struct cmd_list_element *list, int from_tty,
36*b725ae77Skettenis 			   char *prefix);
37*b725ae77Skettenis 
38*b725ae77Skettenis #endif /* !defined (CLI_SETSHOW_H) */
39