GDB (xrefs)
|
#include "defs.h"
#include "readline/tilde.h"
#include "value.h"
#include <ctype.h>
#include "arch-utils.h"
#include "observable.h"
#include "interps.h"
#include "ui-out.h"
#include "cli/cli-decode.h"
#include "cli/cli-cmds.h"
#include "cli/cli-setshow.h"
#include "cli/cli-utils.h"
Go to the source code of this file.
Functions | |
static bool | notify_command_param_changed_p (bool param_changed, struct cmd_list_element *c) |
static enum auto_boolean | parse_auto_binary_operation (const char *arg) |
int | parse_cli_boolean_value (const char **arg) |
int | parse_cli_boolean_value (const char *arg) |
static void | deprecated_show_value_hack (struct ui_file *ignore_file, int ignore_from_tty, struct cmd_list_element *c, const char *value) |
static bool | get_literal_val (LONGEST &val, const literal_def *extra_literals, const char **arg, bool expression) |
LONGEST | parse_cli_var_integer (var_types var_type, const literal_def *extra_literals, const char **arg, bool expression) |
const char * | parse_cli_var_enum (const char **args, const char *const *enums) |
void | do_set_command (const char *arg, int from_tty, struct cmd_list_element *c) |
std::string | get_setshow_command_value_string (const setting &var) |
void | do_show_command (const char *arg, int from_tty, struct cmd_list_element *c) |
void | cmd_show_list (struct cmd_list_element *list, int from_tty) |
void cmd_show_list | ( | struct cmd_list_element * | list, |
int | from_tty ) |
Definition at line 680 of file cli-setshow.c.
References cmd_func(), cmd_show_list(), current_uiout, do_show_command(), ui_out::field_string(), cmd_list_element::is_alias(), ui_out::is_mi_like_p(), cmd_list_element::is_prefix(), cmd_list_element::name, cmd_list_element::next, no_set_class, cmd_list_element::prefix, cmd_list_element::prefixname(), show_cmd, cmd_list_element::subcommands, ui_out::text(), cmd_list_element::theclass, and cmd_list_element::type.
Referenced by cmd_show_list(), do_show_prefix_cmd(), and show_index_cache_command().
|
static |
Definition at line 122 of file cli-setshow.c.
References cmd_list_element::doc, gdb_printf(), gdb_stdout, print_doc_line(), cmd_list_element::var, var_enum, var_filename, var_optional_filename, var_string, and var_string_noescape.
Referenced by do_show_command().
void do_set_command | ( | const char * | arg, |
int | from_tty, | ||
struct cmd_list_element * | c ) |
Definition at line 327 of file cli-setshow.c.
References auto_boolean_enums, cmd_list_element::enums, error_no_arg(), extra_literals, cmd_list_element::func, get_current_arch(), interps_notify_param_changed(), name, cmd_list_element::name, notify_command_param_changed_p(), parse_auto_binary_operation(), parse_cli_boolean_value(), parse_cli_var_enum(), parse_cli_var_integer(), parse_escape(), cmd_list_element::prefix, set_cmd, setlist, cmd_list_element::subcommands, cmd_list_element::type, cmd_list_element::var, var_auto_boolean, var_boolean, var_enum, var_filename, var_integer, var_optional_filename, var_pinteger, var_string, var_string_noescape, var_uinteger, xfree(), and xmalloc().
Referenced by execute_command(), set_auto_load_cmd(), set_per_command_cmd(), and with_command_1().
void do_show_command | ( | const char * | arg, |
int | from_tty, | ||
struct cmd_list_element * | c ) |
Definition at line 652 of file cli-setshow.c.
References current_uiout, deprecated_show_value_hack(), ui_out::field_string(), cmd_list_element::func, gdb_stdout, get_setshow_command_value_string(), ui_out::is_mi_like_p(), show_cmd, cmd_list_element::show_value_func, cmd_list_element::type, and cmd_list_element::var.
Referenced by cmd_show_list(), execute_command(), and show_remote_cmd().
|
static |
Definition at line 156 of file cli-setshow.c.
References extra_literals, and literal_def::literal.
Referenced by parse_cli_var_integer().
std::string get_setshow_command_value_string | ( | const setting & | var | ) |
Definition at line 564 of file cli-setshow.c.
References AUTO_BOOLEAN_AUTO, AUTO_BOOLEAN_FALSE, AUTO_BOOLEAN_TRUE, literal_def::literal, ui_file::printf(), ui_file::puts(), ui_file::putstr(), string_file::release(), cmd_list_element::var, var_auto_boolean, var_boolean, var_enum, var_filename, var_integer, var_optional_filename, var_pinteger, var_string, var_string_noescape, and var_uinteger.
Referenced by do_show_command(), str_value_from_setting(), and with_command_1().
|
static |
Definition at line 36 of file cli-setshow.c.
References class_maintenance, class_obscure, and cmd_list_element::theclass.
Referenced by do_set_command().
|
static |
Definition at line 46 of file cli-setshow.c.
References AUTO_BOOLEAN_AUTO, AUTO_BOOLEAN_FALSE, and AUTO_BOOLEAN_TRUE.
Referenced by do_set_command().
int parse_cli_boolean_value | ( | const char ** | arg | ) |
Definition at line 78 of file cli-setshow.c.
Referenced by do_set_command(), parse_cli_boolean_value(), gdb::option::parse_option(), and set_per_command_cmd().
int parse_cli_boolean_value | ( | const char * | arg | ) |
Definition at line 108 of file cli-setshow.c.
References parse_cli_boolean_value().
const char * parse_cli_var_enum | ( | const char ** | args, |
const char *const * | enums ) |
Definition at line 272 of file cli-setshow.c.
Referenced by do_set_command(), and gdb::option::parse_option().
LONGEST parse_cli_var_integer | ( | var_types | var_type, |
const literal_def * | extra_literals, | ||
const char ** | arg, | ||
bool | expression ) |
Definition at line 197 of file cli-setshow.c.
References error_no_arg(), extra_literals, get_literal_val(), get_ulongest(), literal_def::literal, parse_and_eval_long(), var_integer, var_pinteger, and var_uinteger.
Referenced by do_set_command(), and gdb::option::parse_option().