GDB (xrefs)
|
#include "defs.h"
#include "readline/tilde.h"
#include "value.h"
#include <ctype.h>
#include "arch-utils.h"
#include "observable.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) |
void | deprecated_show_value_hack (struct ui_file *ignore_file, int ignore_from_tty, struct cmd_list_element *c, const char *value) |
static bool | is_unlimited_literal (const char **arg, bool expression) |
unsigned int | parse_cli_var_uinteger (var_types var_type, const char **arg, bool expression) |
int | parse_cli_var_zuinteger_unlimited (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 700 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().
void deprecated_show_value_hack | ( | struct ui_file * | ignore_file, |
int | ignore_from_tty, | ||
struct cmd_list_element * | c, | ||
const char * | value | ||
) |
Definition at line 121 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.
void do_set_command | ( | const char * | arg, |
int | from_tty, | ||
struct cmd_list_element * | c | ||
) |
Definition at line 306 of file cli-setshow.c.
References auto_boolean_enums, gdb::observers::command_param_changed, cmd_list_element::enums, error_no_arg(), cmd_list_element::func, get_current_arch(), INT_MAX, INT_MIN, is_unlimited_literal(), name, cmd_list_element::name, notify_command_param_changed_p(), parse_and_eval_long(), parse_auto_binary_operation(), parse_cli_boolean_value(), parse_cli_var_enum(), parse_cli_var_uinteger(), parse_cli_var_zuinteger_unlimited(), 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_string, var_string_noescape, var_uinteger, var_zinteger, var_zuinteger, var_zuinteger_unlimited, xfree(), xmalloc(), and xrealloc().
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 672 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().
std::string get_setshow_command_value_string | ( | const setting & | var | ) |
Definition at line 580 of file cli-setshow.c.
References AUTO_BOOLEAN_AUTO, AUTO_BOOLEAN_FALSE, AUTO_BOOLEAN_TRUE, INT_MAX, ui_file::printf(), ui_file::puts(), ui_file::putstr(), string_file::release(), UINT_MAX, cmd_list_element::var, var_auto_boolean, var_boolean, var_enum, var_filename, var_integer, var_optional_filename, var_string, var_string_noescape, var_uinteger, var_zinteger, var_zuinteger, and var_zuinteger_unlimited.
Referenced by do_show_command(), str_value_from_setting(), and with_command_1().
|
static |
Definition at line 155 of file cli-setshow.c.
Referenced by do_set_command(), parse_cli_var_uinteger(), and parse_cli_var_zuinteger_unlimited().
|
static |
Definition at line 35 of file cli-setshow.c.
References class_maintenance, class_obscure, and cmd_list_element::theclass.
Referenced by do_set_command().
|
static |
Definition at line 45 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 77 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 107 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 251 of file cli-setshow.c.
Referenced by do_set_command(), and gdb::option::parse_option().
unsigned int parse_cli_var_uinteger | ( | var_types | var_type, |
const char ** | arg, | ||
bool | expression | ||
) |
Definition at line 190 of file cli-setshow.c.
References error_no_arg(), get_ulongest(), is_unlimited_literal(), parse_and_eval_long(), UINT_MAX, var_uinteger, and var_zuinteger.
Referenced by do_set_command(), and gdb::option::parse_option().
int parse_cli_var_zuinteger_unlimited | ( | const char ** | arg, |
bool | expression | ||
) |
Definition at line 226 of file cli-setshow.c.
References error_no_arg(), get_ulongest(), INT_MAX, is_unlimited_literal(), and parse_and_eval_long().
Referenced by do_set_command(), and gdb::option::parse_option().