GDB (xrefs)
Loading...
Searching...
No Matches
Functions
cli-setshow.c File Reference
#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)
 

Function Documentation

◆ cmd_show_list()

void cmd_show_list ( struct cmd_list_element * list,
int from_tty )

◆ deprecated_show_value_hack()

static void deprecated_show_value_hack ( struct ui_file * ignore_file,
int ignore_from_tty,
struct cmd_list_element * c,
const char * value )
static

◆ do_set_command()

void do_set_command ( const char * arg,
int from_tty,
struct cmd_list_element * c )

◆ do_show_command()

void do_show_command ( const char * arg,
int from_tty,
struct cmd_list_element * c )

◆ get_literal_val()

static bool get_literal_val ( LONGEST & val,
const literal_def * extra_literals,
const char ** arg,
bool expression )
static

Definition at line 156 of file cli-setshow.c.

References extra_literals, and literal_def::literal.

Referenced by parse_cli_var_integer().

◆ get_setshow_command_value_string()

std::string get_setshow_command_value_string ( const setting & var)

◆ notify_command_param_changed_p()

static bool notify_command_param_changed_p ( bool param_changed,
struct cmd_list_element * c )
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().

◆ parse_auto_binary_operation()

static enum auto_boolean parse_auto_binary_operation ( const char * arg)
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().

◆ parse_cli_boolean_value() [1/2]

int parse_cli_boolean_value ( const char ** arg)

◆ parse_cli_boolean_value() [2/2]

int parse_cli_boolean_value ( const char * arg)

Definition at line 108 of file cli-setshow.c.

References parse_cli_boolean_value().

◆ parse_cli_var_enum()

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().

◆ parse_cli_var_integer()

LONGEST parse_cli_var_integer ( var_types var_type,
const literal_def * extra_literals,
const char ** arg,
bool expression )