GDB (xrefs)
Loading...
Searching...
No Matches
Macros | Functions | Variables
py-evts.c File Reference
#include "defs.h"
#include "py-events.h"
#include "py-all-events.def"

Go to the source code of this file.

Macros

#define GDB_PY_DEFINE_EVENT(name)
 

Functions

static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION add_new_registry (eventregistry_object **registryp, const char *name)
 
PyMODINIT_FUNC gdbpy_events_mod_func ()
 

Variables

static struct PyModuleDef EventModuleDef
 

Macro Definition Documentation

◆ GDB_PY_DEFINE_EVENT

#define GDB_PY_DEFINE_EVENT ( name)
Value:
if (add_new_registry (&gdb_py_events.name, #name) < 0) \
return nullptr;
const char *const name
events_object gdb_py_events
static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION add_new_registry(eventregistry_object **registryp, const char *name)
Definition py-evts.c:40

Function Documentation

◆ add_new_registry()

static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION add_new_registry ( eventregistry_object ** registryp,
const char * name )
static

Definition at line 40 of file py-evts.c.

References create_eventregistry_object(), gdb_py_events, gdb_pymodule_addobject(), and name.

◆ gdbpy_events_mod_func()

PyMODINIT_FUNC gdbpy_events_mod_func ( )

Definition at line 56 of file py-evts.c.

References EventModuleDef, and gdb_py_events.

Variable Documentation

◆ EventModuleDef

struct PyModuleDef EventModuleDef
static
Initial value:
=
{
PyModuleDef_HEAD_INIT,
"_gdbevents",
NULL,
-1,
NULL,
NULL,
NULL,
NULL,
NULL
}

Definition at line 23 of file py-evts.c.

Referenced by gdbpy_events_mod_func().