GDB (xrefs)
Classes | Functions | Variables
/home/stan/gdb/src/gdb/python/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

static PyTypeObject
pspace_object_type 
CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("pspace_object")
static PyObjectpspy_get_filename (PyObject *self, void *closure)
static void pspy_dealloc (PyObject *self)
static PyObjectpspy_new (PyTypeObject *type, PyObject *args, PyObject *keywords)
PyObjectpspy_get_printers (PyObject *o, void *ignore)
static int pspy_set_printers (PyObject *o, PyObject *value, void *ignore)
PyObjectpspy_get_frame_filters (PyObject *o, void *ignore)
static int pspy_set_frame_filters (PyObject *o, PyObject *frame, void *ignore)
static PyObjectpspy_get_type_printers (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)
PyObjectpspace_to_pspace_object (struct program_space *pspace)
int gdbpy_initialize_pspace (void)

Variables

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

Function Documentation

static PyTypeObject pspace_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ( "pspace_object"  ) [static]
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 155 of file py-progspace.c.

PyObject* pspy_get_printers ( PyObject o,
void *  ignore 
)

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

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

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

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

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

References pspace_object::pspace, and Py_DECREF.

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

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

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

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

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

Definition at line 207 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:
{
  { "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", pspy_get_frame_filters, pspy_set_frame_filters,
    "Frame filters.", NULL },
  { "type_printers", pspy_get_type_printers, pspy_set_type_printers,
    "Type printers.", NULL },
  { NULL }
}

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

PyTypeObject pspace_object_type [static]

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

Referenced by gdbpy_initialize_pspace(), and pspace_to_pspace_object().

struct program_space_data* pspy_pspace_data_key [static]

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

Referenced by gdbpy_initialize_pspace(), and pspace_to_pspace_object().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines