From eed8f803b17dc8158ab4620d064a1d1ce3c81575 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 16 Jun 2011 05:54:09 +0000 Subject: [PATCH] 2011-06-16 Tristan Gingold * python/py-events.h (gdb_py_events): Make it extern. * python/py-evtregistry.c (gdb_py_events): Declare. --- gdb/ChangeLog | 5 +++++ gdb/python/py-events.h | 2 +- gdb/python/py-evtregistry.c | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5c832819acb..8db242a048e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-06-16 Tristan Gingold + + * python/py-events.h (gdb_py_events): Make it extern. + * python/py-evtregistry.c (gdb_py_events): Declare. + 2011-06-16 Hui Zhu * 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 6d4dae57c09..bd54418b289 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 e1b4346c6b0..67d5715ba42 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. -- 2.30.2