GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Functions | Variables
scm-param.c File Reference
#include "defs.h"
#include "value.h"
#include "charset.h"
#include "gdbcmd.h"
#include "cli/cli-decode.h"
#include "completer.h"
#include "language.h"
#include "arch-utils.h"
#include "guile-internal.h"

Go to the source code of this file.

Classes

union  pascm_variable
 
struct  param_smob
 

Functions

static setting make_setting (param_smob *s)
 
static int pascm_is_valid (param_smob *)
 
static const char * pascm_param_type_name (enum var_types type)
 
static SCM pascm_param_value (const setting &var, int arg_pos, const char *func_name)
 
static int pascm_print_param_smob (SCM self, SCM port, scm_print_state *pstate)
 
static SCM pascm_make_param_smob (void)
 
static int pascm_is_parameter (SCM scm)
 
static SCM gdbscm_parameter_p (SCM scm)
 
static SCM pascm_get_param_arg_unsafe (SCM self, int arg_pos, const char *func_name)
 
static param_smobpascm_get_param_smob_arg_unsafe (SCM self, int arg_pos, const char *func_name)
 
static char * get_doc_string (void)
 
static void pascm_signal_setshow_error (SCM exception, const char *msg)
 
static void pascm_set_func (const char *args, int from_tty, struct cmd_list_element *c)
 
static void pascm_show_func (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static set_show_commands add_setshow_generic (enum var_types param_type, enum command_class cmd_class, char *cmd_name, param_smob *self, char *set_doc, char *show_doc, 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)
 
static const char *const * compute_enum_list (SCM enum_values_scm, int arg_pos, const char *func_name)
 
static int pascm_valid_parameter_type_p (int param_type)
 
static void pascm_set_param_value_x (param_smob *p_smob, const char *const *enumeration, SCM value, int arg_pos, const char *func_name)
 
static size_t pascm_free_parameter_smob (SCM self)
 
static SCM gdbscm_make_parameter (SCM name_scm, SCM rest)
 
static int pascm_parameter_defined_p (const char *name, struct cmd_list_element *list)
 
static SCM gdbscm_register_parameter_x (SCM self)
 
static SCM gdbscm_parameter_value (SCM self)
 
static SCM gdbscm_set_parameter_value_x (SCM self, SCM value)
 
void gdbscm_initialize_parameters (void)
 

Variables

static const char param_smob_name [] = "gdb:parameter"
 
static scm_t_bits parameter_smob_tag
 
static SCM command_class_keyword
 
static SCM parameter_type_keyword
 
static SCM enum_list_keyword
 
static SCM set_func_keyword
 
static SCM show_func_keyword
 
static SCM doc_keyword
 
static SCM set_doc_keyword
 
static SCM show_doc_keyword
 
static SCM initial_value_keyword
 
static SCM auto_keyword
 
static SCM unlimited_keyword
 
static const scheme_integer_constant parameter_types []
 
static const scheme_function parameter_functions []
 

Function Documentation

◆ add_setshow_generic()

static set_show_commands add_setshow_generic ( enum var_types  param_type,
enum command_class  cmd_class,
char *  cmd_name,
param_smob self,
char *  set_doc,
char *  show_doc,
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 
)
static

◆ compute_enum_list()

static const char *const * compute_enum_list ( SCM  enum_values_scm,
int  arg_pos,
const char *  func_name 
)
static

◆ gdbscm_initialize_parameters()

void gdbscm_initialize_parameters ( void  )

◆ gdbscm_make_parameter()

static SCM gdbscm_make_parameter ( SCM  name_scm,
SCM  rest 
)
static

◆ gdbscm_parameter_p()

static SCM gdbscm_parameter_p ( SCM  scm)
static

Definition at line 219 of file scm-param.c.

References pascm_is_parameter().

◆ gdbscm_parameter_value()

static SCM gdbscm_parameter_value ( SCM  self)
static

◆ gdbscm_register_parameter_x()

static SCM gdbscm_register_parameter_x ( SCM  self)
static

◆ gdbscm_set_parameter_value_x()

static SCM gdbscm_set_parameter_value_x ( SCM  self,
SCM  value 
)
static

◆ get_doc_string()

static char * get_doc_string ( void  )
static

Definition at line 260 of file scm-param.c.

Referenced by gdbscm_make_parameter(), and parmpy_init().

◆ make_setting()

static setting make_setting ( param_smob s)
static

◆ pascm_free_parameter_smob()

static size_t pascm_free_parameter_smob ( SCM  self)
static

◆ pascm_get_param_arg_unsafe()

static SCM pascm_get_param_arg_unsafe ( SCM  self,
int  arg_pos,
const char *  func_name 
)
static

Definition at line 228 of file scm-param.c.

References param_smob_name, and pascm_is_parameter().

Referenced by pascm_get_param_smob_arg_unsafe().

◆ pascm_get_param_smob_arg_unsafe()

static param_smob * pascm_get_param_smob_arg_unsafe ( SCM  self,
int  arg_pos,
const char *  func_name 
)
static

◆ pascm_is_parameter()

static int pascm_is_parameter ( SCM  scm)
static

◆ pascm_is_valid()

static int pascm_is_valid ( param_smob p_smob)
static

◆ pascm_make_param_smob()

static SCM pascm_make_param_smob ( void  )
static

◆ pascm_param_type_name()

static const char * pascm_param_type_name ( enum var_types  type)
static

Definition at line 571 of file scm-param.c.

References scheme_integer_constant::name, and parameter_types.

Referenced by pascm_print_param_smob().

◆ pascm_param_value()

static SCM pascm_param_value ( const setting var,
int  arg_pos,
const char *  func_name 
)
static

◆ pascm_parameter_defined_p()

static int pascm_parameter_defined_p ( const char *  name,
struct cmd_list_element list 
)
static

Definition at line 986 of file scm-param.c.

References CMD_LIST_AMBIGUOUS, lookup_cmd_1(), and name.

Referenced by gdbscm_register_parameter_x().

◆ pascm_print_param_smob()

static int pascm_print_param_smob ( SCM  self,
SCM  port,
scm_print_state *  pstate 
)
static

◆ pascm_set_func()

static void pascm_set_func ( const char *  args,
int  from_tty,
struct cmd_list_element c 
)
static

◆ pascm_set_param_value_x()

static void pascm_set_param_value_x ( param_smob p_smob,
const char *const *  enumeration,
SCM  value,
int  arg_pos,
const char *  func_name 
)
static

◆ pascm_show_func()

static void pascm_show_func ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

◆ pascm_signal_setshow_error()

static void pascm_signal_setshow_error ( SCM  exception,
const char *  msg 
)
static

◆ pascm_valid_parameter_type_p()

static int pascm_valid_parameter_type_p ( int  param_type)
static

Definition at line 555 of file scm-param.c.

References scheme_integer_constant::name, and parameter_types.

Referenced by gdbscm_make_parameter().

Variable Documentation

◆ auto_keyword

SCM auto_keyword
static

◆ command_class_keyword

SCM command_class_keyword
static

Definition at line 142 of file scm-param.c.

Referenced by gdbscm_initialize_parameters(), and gdbscm_make_parameter().

◆ doc_keyword

SCM doc_keyword
static

Definition at line 147 of file scm-param.c.

Referenced by gdbscm_initialize_parameters(), and gdbscm_make_parameter().

◆ enum_list_keyword

SCM enum_list_keyword
static

Definition at line 144 of file scm-param.c.

Referenced by gdbscm_initialize_parameters(), and gdbscm_make_parameter().

◆ initial_value_keyword

SCM initial_value_keyword
static

Definition at line 150 of file scm-param.c.

Referenced by gdbscm_initialize_parameters(), and gdbscm_make_parameter().

◆ param_smob_name

const char param_smob_name[] = "gdb:parameter"
static

◆ parameter_functions

const scheme_function parameter_functions[]
static

Definition at line 1128 of file scm-param.c.

Referenced by gdbscm_initialize_parameters().

◆ parameter_smob_tag

scm_t_bits parameter_smob_tag
static

◆ parameter_type_keyword

SCM parameter_type_keyword
static

Definition at line 143 of file scm-param.c.

Referenced by gdbscm_initialize_parameters(), and gdbscm_make_parameter().

◆ parameter_types

const scheme_integer_constant parameter_types[]
static
Initial value:
=
{
{ "PARAM_BOOLEAN", var_boolean },
{ "PARAM_AUTO_BOOLEAN", var_auto_boolean },
{ "PARAM_ZINTEGER", var_zinteger },
{ "PARAM_UINTEGER", var_uinteger },
{ "PARAM_ZUINTEGER", var_zuinteger },
{ "PARAM_ZUINTEGER_UNLIMITED", var_zuinteger_unlimited },
{ "PARAM_STRING", var_string },
{ "PARAM_STRING_NOESCAPE", var_string_noescape },
{ "PARAM_OPTIONAL_FILENAME", var_optional_filename },
{ "PARAM_FILENAME", var_filename },
{ "PARAM_ENUM", var_enum },
}
@ var_optional_filename
Definition: command.h:106
@ var_string
Definition: command.h:100
@ var_boolean
Definition: command.h:78
@ var_auto_boolean
Definition: command.h:85
@ var_zuinteger_unlimited
Definition: command.h:118
@ var_string_noescape
Definition: command.h:103
@ var_zuinteger
Definition: command.h:114
@ var_filename
Definition: command.h:108
@ var_zinteger
Definition: command.h:111
@ var_uinteger
Definition: command.h:89
@ var_enum
Definition: command.h:122
#define END_INTEGER_CONSTANTS

Definition at line 533 of file scm-param.c.

Referenced by gdbscm_initialize_parameters(), pascm_param_type_name(), and pascm_valid_parameter_type_p().

◆ set_doc_keyword

SCM set_doc_keyword
static

Definition at line 148 of file scm-param.c.

Referenced by gdbscm_initialize_parameters(), and gdbscm_make_parameter().

◆ set_func_keyword

SCM set_func_keyword
static

Definition at line 145 of file scm-param.c.

Referenced by gdbscm_initialize_parameters(), and gdbscm_make_parameter().

◆ show_doc_keyword

SCM show_doc_keyword
static

Definition at line 149 of file scm-param.c.

Referenced by gdbscm_initialize_parameters(), and gdbscm_make_parameter().

◆ show_func_keyword

SCM show_func_keyword
static

Definition at line 146 of file scm-param.c.

Referenced by gdbscm_initialize_parameters(), and gdbscm_make_parameter().

◆ unlimited_keyword

SCM unlimited_keyword
static