nm: Add --quiet to suppress "no symbols" diagnostic
[binutils-gdb.git] / gdb / gdbcmd.h
blobf541ebd92d2a4f443c0c6d8d44f8e1948e4adec0
1 /* ***DEPRECATED*** The gdblib files must not be calling/using things in any
2 of the possible command languages. If necessary, a hook (that may be
3 present or not) must be used and set to the appropriate routine by any
4 command language that cares about it. If you are having to include this
5 file you are possibly doing things the old way. This file will dissapear.
6 fnasser@redhat.com */
8 /* Header file for GDB-specific command-line stuff.
9 Copyright (C) 1986-2021 Free Software Foundation, Inc.
11 This program is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 3 of the License, or
14 (at your option) any later version.
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with this program. If not, see <http://www.gnu.org/licenses/>. */
24 #if !defined (GDBCMD_H)
25 #define GDBCMD_H 1
27 #include "command.h"
28 #include "ui-out.h"
29 #include "cli/cli-script.h"
31 /* Chain containing all defined commands. */
33 extern struct cmd_list_element *cmdlist;
35 /* Chain containing all defined info subcommands. */
37 extern struct cmd_list_element *infolist;
39 /* Chain containing all defined enable subcommands. */
41 extern struct cmd_list_element *enablelist;
43 /* Chain containing all defined disable subcommands. */
45 extern struct cmd_list_element *disablelist;
47 /* Chain containing all defined delete subcommands. */
49 extern struct cmd_list_element *deletelist;
51 /* Chain containing all defined detach subcommands. */
53 extern struct cmd_list_element *detachlist;
55 /* Chain containing all defined kill subcommands. */
57 extern struct cmd_list_element *killlist;
59 /* Chain containing all defined stop subcommands. */
61 extern struct cmd_list_element *stoplist;
63 /* Chain containing all defined set subcommands. */
65 extern struct cmd_list_element *setlist;
67 /* Chain containing all defined unset subcommands. */
69 extern struct cmd_list_element *unsetlist;
71 /* Chain containing all defined show subcommands. */
73 extern struct cmd_list_element *showlist;
75 /* Chain containing all defined \"set history\". */
77 extern struct cmd_list_element *sethistlist;
79 /* Chain containing all defined \"show history\". */
81 extern struct cmd_list_element *showhistlist;
83 /* Chain containing all defined \"unset history\". */
85 extern struct cmd_list_element *unsethistlist;
87 /* Chain containing all defined maintenance subcommands. */
89 extern struct cmd_list_element *maintenancelist;
91 /* Chain containing all defined "maintenance info" subcommands. */
93 extern struct cmd_list_element *maintenanceinfolist;
95 /* Chain containing all defined "maintenance print" subcommands. */
97 extern struct cmd_list_element *maintenanceprintlist;
99 /* Chain containing all defined "maintenance check" subcommands. */
101 extern struct cmd_list_element *maintenancechecklist;
103 /* Chain containing all defined "maintenance set" subcommands. */
105 extern struct cmd_list_element *maintenance_set_cmdlist;
107 /* Chain containing all defined "maintenance show" subcommands. */
109 extern struct cmd_list_element *maintenance_show_cmdlist;
111 extern struct cmd_list_element *setprintlist;
113 extern struct cmd_list_element *showprintlist;
115 extern struct cmd_list_element *setprintrawlist;
117 extern struct cmd_list_element *showprintrawlist;
119 extern struct cmd_list_element *setprinttypelist;
121 extern struct cmd_list_element *showprinttypelist;
123 extern struct cmd_list_element *setdebuglist;
125 extern struct cmd_list_element *showdebuglist;
127 extern struct cmd_list_element *setchecklist;
129 extern struct cmd_list_element *showchecklist;
131 /* Chain containing all defined "save" subcommands. */
133 extern struct cmd_list_element *save_cmdlist;
135 extern void execute_command (const char *, int);
137 /* Run execute_command for P and FROM_TTY. Capture its output into the
138 returned string, do not display it to the screen. The global BATCH_FLAG
139 will temporarily be set to true. When TERM_OUT is true the output is
140 collected with terminal behaviour (e.g. with styling). When TERM_OUT is
141 false raw output will be collected (e.g. no styling). */
143 extern std::string execute_command_to_string (const char *p, int from_tty,
144 bool term_out);
145 extern void execute_command_to_ui_file (struct ui_file *file,
146 const char *p, int from_tty);
148 extern void print_command_line (struct command_line *, unsigned int,
149 struct ui_file *);
150 extern void print_command_lines (struct ui_out *,
151 struct command_line *, unsigned int);
153 #endif /* !defined (GDBCMD_H) */