aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-06-16 05:54:09 +0000
committerTristan Gingold <gingold@adacore.com>2011-06-16 05:54:09 +0000
commiteed8f803b17dc8158ab4620d064a1d1ce3c81575 (patch)
tree64f1e28cb42dd8e240d7b8502192b500fdb92831
parent864ac8a76cd35fe28e4153233b23947cd9e0f066 (diff)
downloadgdb-eed8f803b17dc8158ab4620d064a1d1ce3c81575.zip
gdb-eed8f803b17dc8158ab4620d064a1d1ce3c81575.tar.gz
gdb-eed8f803b17dc8158ab4620d064a1d1ce3c81575.tar.bz2
2011-06-16 Tristan Gingold <gingold@adacore.com>
* python/py-events.h (gdb_py_events): Make it extern. * python/py-evtregistry.c (gdb_py_events): Declare.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/python/py-events.h2
-rw-r--r--gdb/python/py-evtregistry.c2
3 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5c83281..8db242a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-16 Tristan Gingold <gingold@adacore.com>
+
+ * python/py-events.h (gdb_py_events): Make it extern.
+ * python/py-evtregistry.c (gdb_py_events): Declare.
+
2011-06-16 Hui Zhu <teawater@gmail.com>
* remote.c (remote_trace_set_readonly_regions): Add check for
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.