GDB (xrefs)
Classes | Typedefs | Functions | Variables
py-param.c File Reference
#include "defs.h"
#include "value.h"
#include "python-internal.h"
#include "charset.h"
#include "gdbcmd.h"
#include "cli/cli-decode.h"
#include "completer.h"
#include "language.h"
#include "arch-utils.h"

Go to the source code of this file.

Classes

struct  parm_constant
 
union  parmpy_variable
 
struct  parmpy_object
 

Typedefs

typedef struct parmpy_object parmpy_object
 

Functions

PyTypeObject parmpy_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("parmpy_object")
 
static PyObject * get_attr (PyObject *obj, PyObject *attr_name)
 
static int set_parameter_value (parmpy_object *self, PyObject *value)
 
static int set_attr (PyObject *obj, PyObject *attr_name, PyObject *val)
 
static char * get_doc_string (PyObject *object, PyObject *attr)
 
static char * call_doc_function (PyObject *obj, PyObject *method, PyObject *arg)
 
static void get_set_value (char *args, int from_tty, struct cmd_list_element *c)
 
static void get_show_value (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void add_setshow_generic (int parmclass, enum command_class cmdclass, char *cmd_name, parmpy_object *self, char *set_doc, char *show_doc, char *help_doc, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
 
static int compute_enum_values (parmpy_object *self, PyObject *enum_values)
 
static int parmpy_init (PyObject *self, PyObject *args, PyObject *kwds)
 
int gdbpy_initialize_parameters (void)
 

Variables

struct parm_constant parm_constants []
 
static PyObject * set_doc_cst
 
static PyObject * show_doc_cst
 
PyTypeObject parmpy_object_type
 

Typedef Documentation

typedef struct parmpy_object parmpy_object

Definition at line 89 of file py-param.c.

Function Documentation

static void add_setshow_generic ( int  parmclass,
enum command_class  cmdclass,
char *  cmd_name,
parmpy_object self,
char *  set_doc,
char *  show_doc,
char *  help_doc,
struct cmd_list_element **  set_list,
struct cmd_list_element **  show_list 
)
static
static char* call_doc_function ( PyObject *  obj,
PyObject *  method,
PyObject *  arg 
)
static

Definition at line 331 of file py-param.c.

References _, gdbpy_is_string(), Py_DECREF, and python_string_to_host_string().

Referenced by get_set_value(), and get_show_value().

static int compute_enum_values ( parmpy_object self,
PyObject *  enum_values 
)
static
PyTypeObject parmpy_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ( "parmpy_object"  )
int gdbpy_initialize_parameters ( void  )
static PyObject* get_attr ( PyObject *  obj,
PyObject *  attr_name 
)
static

Definition at line 102 of file py-param.c.

References gdbpy_parameter_value().

static char* get_doc_string ( PyObject *  object,
PyObject *  attr 
)
static
static void get_set_value ( char *  args,
int  from_tty,
struct cmd_list_element c 
)
static
static void get_show_value ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static
static int parmpy_init ( PyObject *  self,
PyObject *  args,
PyObject *  kwds 
)
static
static int set_attr ( PyObject *  obj,
PyObject *  attr_name,
PyObject *  val 
)
static

Definition at line 280 of file py-param.c.

References _, and set_parameter_value().

static int set_parameter_value ( parmpy_object self,
PyObject *  value 
)
static

Variable Documentation

struct parm_constant parm_constants[]
Initial value:
=
{
{ "PARAM_BOOLEAN", var_boolean },
{ "PARAM_AUTO_BOOLEAN", var_auto_boolean },
{ "PARAM_UINTEGER", var_uinteger },
{ "PARAM_INTEGER", var_integer },
{ "PARAM_STRING", var_string },
{ "PARAM_STRING_NOESCAPE", var_string_noescape },
{ "PARAM_OPTIONAL_FILENAME", var_optional_filename },
{ "PARAM_FILENAME", var_filename },
{ "PARAM_ZINTEGER", var_zinteger },
{ "PARAM_ENUM", var_enum },
{ NULL, 0 }
}

Definition at line 38 of file py-param.c.

PyTypeObject parmpy_object_type

Definition at line 783 of file py-param.c.

Referenced by gdbpy_initialize_parameters().

PyObject* set_doc_cst
static

Definition at line 95 of file py-param.c.

Referenced by gdbpy_initialize_parameters(), get_set_value(), and parmpy_init().

PyObject* show_doc_cst
static

Definition at line 96 of file py-param.c.

Referenced by gdbpy_initialize_parameters(), get_show_value(), and parmpy_init().