GDB (xrefs)
Classes | Functions | Variables
py-progspace.c File Reference
#include "defs.h"
#include "python-internal.h"
#include "charset.h"
#include "progspace.h"
#include "objfiles.h"
#include "language.h"
#include "arch-utils.h"

Go to the source code of this file.

Classes

struct  pspace_object
 

Functions

PyTypeObject pspace_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("pspace_object")
 
static PyObject * pspy_get_filename (PyObject *self, void *closure)
 
static void pspy_dealloc (PyObject *self)
 
static int pspy_initialize (pspace_object *self)
 
static PyObject * pspy_new (PyTypeObject *type, PyObject *args, PyObject *keywords)
 
PyObject * pspy_get_printers (PyObject *o, void *ignore)
 
static int pspy_set_printers (PyObject *o, PyObject *value, void *ignore)
 
PyObject * pspy_get_frame_filters (PyObject *o, void *ignore)
 
static int pspy_set_frame_filters (PyObject *o, PyObject *frame, void *ignore)
 
PyObject * pspy_get_frame_unwinders (PyObject *o, void *ignore)
 
static int pspy_set_frame_unwinders (PyObject *o, PyObject *unwinders, void *ignore)
 
static PyObject * pspy_get_type_printers (PyObject *o, void *ignore)
 
PyObject * pspy_get_xmethods (PyObject *o, void *ignore)
 
static int pspy_set_type_printers (PyObject *o, PyObject *value, void *ignore)
 
static void py_free_pspace (struct program_space *pspace, void *datum)
 
PyObject * pspace_to_pspace_object (struct program_space *pspace)
 
int gdbpy_initialize_pspace (void)
 

Variables

static const struct program_space_data * pspy_pspace_data_key
 
static PyGetSetDef pspace_getset []
 
PyTypeObject pspace_object_type
 

Function Documentation

PyTypeObject pspace_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ( "pspace_object"  )
int gdbpy_initialize_pspace ( void  )
PyObject* pspace_to_pspace_object ( struct program_space pspace)
static void pspy_dealloc ( PyObject *  self)
static
static PyObject* pspy_get_filename ( PyObject *  self,
void *  closure 
)
static
PyObject* pspy_get_frame_filters ( PyObject *  o,
void *  ignore 
)

Definition at line 185 of file py-progspace.c.

PyObject* pspy_get_frame_unwinders ( PyObject *  o,
void *  ignore 
)

Definition at line 226 of file py-progspace.c.

PyObject* pspy_get_printers ( PyObject *  o,
void *  ignore 
)

Definition at line 145 of file py-progspace.c.

Referenced by find_pretty_printer_from_progspace().

static PyObject* pspy_get_type_printers ( PyObject *  o,
void *  ignore 
)
static

Definition at line 268 of file py-progspace.c.

PyObject* pspy_get_xmethods ( PyObject *  o,
void *  ignore 
)

Definition at line 279 of file py-progspace.c.

Referenced by gdbpy_get_matching_xmethod_workers().

static int pspy_initialize ( pspace_object self)
static

Definition at line 99 of file py-progspace.c.

Referenced by pspace_to_pspace_object(), and pspy_new().

static PyObject* pspy_new ( PyTypeObject *  type,
PyObject *  args,
PyObject *  keywords 
)
static

Definition at line 128 of file py-progspace.c.

References pspy_initialize(), and Py_DECREF.

static int pspy_set_frame_filters ( PyObject *  o,
PyObject *  frame,
void *  ignore 
)
static

Definition at line 195 of file py-progspace.c.

static int pspy_set_frame_unwinders ( PyObject *  o,
PyObject *  unwinders,
void *  ignore 
)
static

Definition at line 237 of file py-progspace.c.

static int pspy_set_printers ( PyObject *  o,
PyObject *  value,
void *  ignore 
)
static

Definition at line 154 of file py-progspace.c.

static int pspy_set_type_printers ( PyObject *  o,
PyObject *  value,
void *  ignore 
)
static

Definition at line 290 of file py-progspace.c.

static void py_free_pspace ( struct program_space pspace,
void *  datum 
)
static

Variable Documentation

PyGetSetDef pspace_getset[]
static
Initial value:
=
{
{ "__dict__", gdb_py_generic_dict, NULL,
"The __dict__ for this progspace.", &pspace_object_type },
{ "filename", pspy_get_filename, NULL,
"The progspace's main filename, or None.", NULL },
{ "pretty_printers", pspy_get_printers, pspy_set_printers,
"Pretty printers.", NULL },
"Frame filters.", NULL },
"Frame unwinders.", NULL },
"Type printers.", NULL },
{ "xmethods", pspy_get_xmethods, NULL,
"Debug methods.", NULL },
{ NULL }
}
PyObject * gdb_py_generic_dict(PyObject *self, void *closure)
Definition: py-utils.c:420
static int pspy_set_printers(PyObject *o, PyObject *value, void *ignore)
Definition: py-progspace.c:154
static int pspy_set_type_printers(PyObject *o, PyObject *value, void *ignore)
Definition: py-progspace.c:290
PyObject * pspy_get_frame_filters(PyObject *o, void *ignore)
Definition: py-progspace.c:185
PyObject * pspy_get_xmethods(PyObject *o, void *ignore)
Definition: py-progspace.c:279
static int pspy_set_frame_filters(PyObject *o, PyObject *frame, void *ignore)
Definition: py-progspace.c:195
PyTypeObject pspace_object_type
Definition: py-progspace.c:408
static int pspy_set_frame_unwinders(PyObject *o, PyObject *unwinders, void *ignore)
Definition: py-progspace.c:237
static PyObject * pspy_get_filename(PyObject *self, void *closure)
Definition: py-progspace.c:65
PyObject * pspy_get_frame_unwinders(PyObject *o, void *ignore)
Definition: py-progspace.c:226
static PyObject * pspy_get_type_printers(PyObject *o, void *ignore)
Definition: py-progspace.c:268
PyObject * pspy_get_printers(PyObject *o, void *ignore)
Definition: py-progspace.c:145

Definition at line 389 of file py-progspace.c.

PyTypeObject pspace_object_type

Definition at line 408 of file py-progspace.c.

Referenced by gdbpy_initialize_pspace(), and pspace_to_pspace_object().

const struct program_space_data* pspy_pspace_data_key
static

Definition at line 58 of file py-progspace.c.

Referenced by gdbpy_initialize_pspace(), and pspace_to_pspace_object().