2011-06-16 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Thu, 16 Jun 2011 05:54:09 +0000 (05:54 +0000)
committerTristan Gingold <gingold@adacore.com>
Thu, 16 Jun 2011 05:54:09 +0000 (05:54 +0000)
* python/py-events.h (gdb_py_events): Make it extern.
* python/py-evtregistry.c (gdb_py_events): Declare.

gdb/ChangeLog
gdb/python/py-events.h
gdb/python/py-evtregistry.c

index 5c832819acbc1ea7d49d7530d31ad1994d9b4599..8db242a048e25363a28d00167aedd34ddca58093 100644 (file)
@@ -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
index 6d4dae57c09d834dd7f1cd6879033660d11b80f4..bd54418b289450a02a0ac38a5e8931505ada5363 100644 (file)
@@ -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);
index e1b4346c6b09df231e3da9b8d4902ab09eb92b6e..67d5715ba42af8f7e31baee230652abaacdbefae 100644 (file)
@@ -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.