GDB (xrefs)
Loading...
Searching...
No Matches
maint-test-settings.c
Go to the documentation of this file.
1/* Maintenance commands for testing the settings framework.
2
3 Copyright (C) 2019-2023 Free Software Foundation, Inc.
4
5 This file is part of GDB.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19
20
21#include "defs.h"
22#include "gdbcmd.h"
23
24/* Command list for "maint set test-settings". */
26
27/* Command list for "maint show test-settings". */
29
30/* Control variables for all the "maintenance set/show test-settings
31 xxx" commands. */
32
34
36
38
40
42
44
46
48
50
52
54
55/* Enum values for the "maintenance set/show test-settings boolean"
56 commands. */
57static const char maintenance_test_settings_xxx[] = "xxx";
58static const char maintenance_test_settings_yyy[] = "yyy";
59static const char maintenance_test_settings_zzz[] = "zzz";
60
67
70
71/* The "maintenance show test-settings xxx" commands. */
72
73static void
75 (struct ui_file *file, int from_tty,
76 struct cmd_list_element *c, const char *value)
77{
78 gdb_printf (file, (("%s\n")), value);
79}
80
81
83void
85{
87
89 _("\
90Set GDB internal variables used for set/show command infrastructure testing."),
91 _("\
92Show GDB internal variables used for set/show command infrastructure testing."),
96
99command used for internal testing."), _("\
100command used for internal testing."),
101 nullptr, /* help_doc */
102 nullptr, /* set_cmd */
106
109command used for internal testing."), _("\
110command used for internal testing."),
111 nullptr, /* help_doc */
112 nullptr, /* set_cmd */
116
119command used for internal testing."), _("\
120command used for internal testing."),
121 nullptr, /* help_doc */
122 nullptr, /* set_cmd */
126
129command used for internal testing."), _("\
130command used for internal testing."),
131 nullptr, /* help_doc */
132 nullptr, /* set_cmd */
136
139command used for internal testing."), _("\
140command used for internal testing."),
141 nullptr, /* help_doc */
142 nullptr, /* set_cmd */
146
148 ("string-noescape", class_maintenance,
150command used for internal testing."), _("\
151command used for internal testing."),
152 nullptr, /* help_doc */
153 nullptr, /* set_cmd */
157
159 ("optional-filename", class_maintenance,
161command used for internal testing."), _("\
162command used for internal testing."),
163 nullptr, /* help_doc */
164 nullptr, /* set_cmd */
168
171command used for internal testing."), _("\
172command used for internal testing."),
173 nullptr, /* help_doc */
174 nullptr, /* set_cmd */
178
181command used for internal testing."), _("\
182command used for internal testing."),
183 nullptr, /* help_doc */
184 nullptr, /* set_cmd */
188
191command used for internal testing."), _("\
192command used for internal testing."),
193 nullptr, /* help_doc */
194 nullptr, /* set_cmd */
198
200 ("zuinteger-unlimited", class_maintenance,
202command used for internal testing."), _("\
203command used for internal testing."),
204 nullptr, /* help_doc */
205 nullptr, /* set_cmd */
209
213command used for internal testing."), _("\
214command used for internal testing."),
215 nullptr, /* help_doc */
216 nullptr, /* set_cmd */
220}
struct cmd_list_element * maintenance_show_cmdlist
Definition maint.c:752
struct cmd_list_element * maintenance_set_cmdlist
Definition maint.c:751
set_show_commands add_setshow_filename_cmd(const char *name, enum command_class theclass, std::string *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
Definition cli-decode.c:855
set_show_commands add_setshow_zinteger_cmd(const char *name, enum command_class theclass, int *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
set_show_commands add_setshow_optional_filename_cmd(const char *name, enum command_class theclass, std::string *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
set_show_commands add_setshow_string_cmd(const char *name, enum command_class theclass, std::string *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
Definition cli-decode.c:903
set_show_commands add_setshow_zuinteger_unlimited_cmd(const char *name, enum command_class theclass, int *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
set_show_commands add_setshow_uinteger_cmd(const char *name, enum command_class theclass, unsigned int *var, const literal_def *extra_literals, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
set_show_commands add_setshow_enum_cmd(const char *name, enum command_class theclass, const char *const *enumlist, const char **var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
Definition cli-decode.c:688
set_show_commands add_setshow_integer_cmd(const char *name, enum command_class theclass, int *var, const literal_def *extra_literals, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
set_show_commands add_setshow_prefix_cmd(const char *name, command_class theclass, const char *set_doc, const char *show_doc, cmd_list_element **set_subcommands_list, cmd_list_element **show_subcommands_list, cmd_list_element **set_list, cmd_list_element **show_list)
Definition cli-decode.c:428
set_show_commands add_setshow_boolean_cmd(const char *name, enum command_class theclass, bool *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
Definition cli-decode.c:809
set_show_commands add_setshow_string_noescape_cmd(const char *name, enum command_class theclass, std::string *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
Definition cli-decode.c:953
set_show_commands add_setshow_auto_boolean_cmd(const char *name, enum command_class theclass, enum auto_boolean *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
Definition cli-decode.c:752
set_show_commands add_setshow_zuinteger_cmd(const char *name, enum command_class theclass, unsigned int *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
@ class_maintenance
Definition command.h:65
auto_boolean
Definition defs.h:247
@ AUTO_BOOLEAN_AUTO
Definition defs.h:250
static std::string maintenance_test_settings_filename
static const char maintenance_test_settings_yyy[]
static bool maintenance_test_settings_boolean
static unsigned int maintenance_test_settings_uinteger
static const char * maintenance_test_settings_enum
static std::string maintenance_test_settings_string_noescape
static void maintenance_show_test_settings_value_cmd(struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
static std::string maintenance_test_settings_optional_filename
static int maintenance_test_settings_zinteger
static std::string maintenance_test_settings_string
static cmd_list_element * maintenance_set_test_settings_list
static int maintenance_test_settings_integer
static const char maintenance_test_settings_xxx[]
static unsigned int maintenance_test_settings_zuinteger
void _initialize_maint_test_settings()
static cmd_list_element * maintenance_show_test_settings_list
static const char *const maintenance_test_settings_enums[]
static const char maintenance_test_settings_zzz[]
static int maintenance_test_settings_zuinteger_unlimited
static auto_boolean maintenance_test_settings_auto_boolean
Definition value.h:130
void gdb_printf(struct ui_file *stream, const char *format,...)
Definition utils.c:1886