GDB (xrefs)
Functions | Variables
py-event.c File Reference
#include "defs.h"
#include "py-event.h"

Go to the source code of this file.

Functions

void evpy_dealloc (PyObject *self)
 
PyObject * create_event_object (PyTypeObject *py_type)
 
int evpy_add_attribute (PyObject *event, char *name, PyObject *attr)
 
int gdbpy_initialize_event (void)
 
int gdbpy_initialize_event_generic (PyTypeObject *type, char *name)
 
int evpy_emit_event (PyObject *event, eventregistry_object *registry)
 

Variables

static PyGetSetDef event_object_getset []
 
PyTypeObject event_object_type
 

Function Documentation

PyObject* create_event_object ( PyTypeObject *  py_type)
int evpy_add_attribute ( PyObject *  event,
char *  name,
PyObject *  attr 
)
void evpy_dealloc ( PyObject *  self)

Definition at line 24 of file py-event.c.

References Py_TYPE.

int evpy_emit_event ( PyObject *  event,
eventregistry_object registry 
)
int gdbpy_initialize_event ( void  )

Definition at line 64 of file py-event.c.

References event_object_type, and gdbpy_initialize_event_generic().

Referenced by _initialize_python().

int gdbpy_initialize_event_generic ( PyTypeObject *  type,
char *  name 
)

Definition at line 75 of file py-event.c.

References gdb_module, and gdb_pymodule_addobject().

Referenced by gdbpy_initialize_event().

Variable Documentation

PyGetSetDef event_object_getset[]
static
Initial value:
=
{
{ "__dict__", gdb_py_generic_dict, NULL,
"The __dict__ for this event.", &event_object_type },
{ NULL }
}
PyObject * gdb_py_generic_dict(PyObject *self, void *closure)
Definition: py-utils.c:420
PyTypeObject event_object_type
Definition: py-event.c:143

Definition at line 136 of file py-event.c.

PyTypeObject event_object_type

Definition at line 143 of file py-event.c.

Referenced by gdbpy_initialize_event().