GDB (xrefs)
Classes | Typedefs | 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
 

Typedefs

typedef struct _param_smob param_smob
 

Functions

static int pascm_is_valid (param_smob *)
 
static const char * pascm_param_type_name (enum var_types type)
 
static SCM pascm_param_value (enum var_types type, void *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 (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 void 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_sfunc_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list, struct cmd_list_element **set_cmd, struct cmd_list_element **show_cmd)
 
static const char *constcompute_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 (enum var_types type, union pascm_variable *var, const char *const *enumeration, SCM value, int arg_pos, const char *func_name)
 
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 []
 

Typedef Documentation

typedef struct _param_smob param_smob

Function Documentation

static void 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_sfunc_ftype set_func,
show_value_ftype show_func,
struct cmd_list_element **  set_list,
struct cmd_list_element **  show_list,
struct cmd_list_element **  set_cmd,
struct cmd_list_element **  show_cmd 
)
static
static const char* const* compute_enum_list ( SCM  enum_values_scm,
int  arg_pos,
const char *  func_name 
)
static
void gdbscm_initialize_parameters ( void  )
static SCM gdbscm_make_parameter ( SCM  name_scm,
SCM  rest 
)
static
static SCM gdbscm_parameter_p ( SCM  scm)
static

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

References pascm_is_parameter().

static SCM gdbscm_parameter_value ( SCM  self)
static
static SCM gdbscm_register_parameter_x ( SCM  self)
static
static SCM gdbscm_set_parameter_value_x ( SCM  self,
SCM  value 
)
static
static char* get_doc_string ( void  )
static

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

References _.

Referenced by gdbscm_make_parameter().

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

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

References param_smob_name, and pascm_is_parameter().

Referenced by 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
static int pascm_is_parameter ( SCM  scm)
static
static int pascm_is_valid ( param_smob p_smob)
static

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

References _param_smob::set_command.

Referenced by gdbscm_register_parameter_x(), and pascm_print_param_smob().

static SCM pascm_make_param_smob ( void  )
static
static const char * pascm_param_type_name ( enum var_types  type)
static

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

References gdb_assert_not_reached, and scheme_integer_constant::name.

Referenced by pascm_print_param_smob().

static SCM pascm_param_value ( enum var_types  type,
void *  var,
int  arg_pos,
const char *  func_name 
)
static
static int pascm_parameter_defined_p ( const char *  name,
struct cmd_list_element list 
)
static

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

References CMD_LIST_AMBIGUOUS, and lookup_cmd_1().

Referenced by gdbscm_register_parameter_x().

static int pascm_print_param_smob ( SCM  self,
SCM  port,
scm_print_state *  pstate 
)
static
static void pascm_set_func ( char *  args,
int  from_tty,
struct cmd_list_element c 
)
static
static void pascm_set_param_value_x ( enum var_types  type,
union pascm_variable var,
const char *const enumeration,
SCM  value,
int  arg_pos,
const char *  func_name 
)
static
static void pascm_show_func ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static
static void pascm_signal_setshow_error ( SCM  exception,
const char *  msg 
)
static
static int pascm_valid_parameter_type_p ( int  param_type)
static

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

References scheme_integer_constant::name.

Referenced by gdbscm_make_parameter().

Variable Documentation

SCM auto_keyword
static
SCM command_class_keyword
static

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

Referenced by gdbscm_initialize_parameters(), and gdbscm_make_parameter().

SCM doc_keyword
static

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

Referenced by gdbscm_initialize_parameters(), and gdbscm_make_parameter().

SCM enum_list_keyword
static

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

Referenced by gdbscm_initialize_parameters(), and gdbscm_make_parameter().

SCM initial_value_keyword
static

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

Referenced by gdbscm_initialize_parameters(), and gdbscm_make_parameter().

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

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

scm_t_bits parameter_smob_tag
static
SCM parameter_type_keyword
static

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

Referenced by gdbscm_initialize_parameters(), and gdbscm_make_parameter().

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 },
}
#define END_INTEGER_CONSTANTS

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

SCM set_doc_keyword
static

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

Referenced by gdbscm_initialize_parameters(), and gdbscm_make_parameter().

SCM set_func_keyword
static

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

Referenced by gdbscm_initialize_parameters(), and gdbscm_make_parameter().

SCM show_doc_keyword
static

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

Referenced by gdbscm_initialize_parameters(), and gdbscm_make_parameter().

SCM show_func_keyword
static

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

Referenced by gdbscm_initialize_parameters(), and gdbscm_make_parameter().

SCM unlimited_keyword
static