aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/py-events.h2
-rw-r--r--gdb/python/py-evtregistry.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/gdb/python/py-events.h b/gdb/python/py-events.h
index 6d4dae5..bd54418 100644
--- a/gdb/python/py-events.h
+++ b/gdb/python/py-events.h
@@ -51,7 +51,7 @@ typedef struct
} events_object;
/* Python events singleton. */
-events_object gdb_py_events;
+extern events_object gdb_py_events;
extern eventregistry_object *create_eventregistry_object (void);
extern int evregpy_no_listeners_p (eventregistry_object *registry);
diff --git a/gdb/python/py-evtregistry.c b/gdb/python/py-evtregistry.c
index e1b4346..67d5715 100644
--- a/gdb/python/py-evtregistry.c
+++ b/gdb/python/py-evtregistry.c
@@ -21,6 +21,8 @@
#include "command.h"
#include "py-events.h"
+events_object gdb_py_events;
+
static PyTypeObject eventregistry_object_type;
/* Implementation of EventRegistry.connect () -> NULL.