2012-03-01 Pedro Alves <palves@redhat.com>
authorPedro Alves <palves@redhat.com>
Thu, 1 Mar 2012 21:06:54 +0000 (21:06 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 1 Mar 2012 21:06:54 +0000 (21:06 +0000)
* python/py-breakpoint.c: Include python.h.
* python/py-continueevent.c (create_continue_event_object): Make
static.
* python/py-lazy-string.c (stpy_get_type): Make static.
* python/py-newobjfileevent.c (create_new_objfile_event_object):
Make static.
* python/py-utils.c (unicode_to_target_python_string): Make
static.
* python/py-value.c: Include python.h.

gdb/ChangeLog
gdb/python/py-breakpoint.c
gdb/python/py-continueevent.c
gdb/python/py-lazy-string.c
gdb/python/py-newobjfileevent.c
gdb/python/py-utils.c
gdb/python/py-value.c

index fb7e347b4fa8c013d8f85d8413e2fc3d3a73db00..6ccea751d5d7a1a3a0ffe117b8aa49979fe69258 100644 (file)
@@ -1,3 +1,15 @@
+2012-03-01  Pedro Alves  <palves@redhat.com>
+
+       * python/py-breakpoint.c: Include python.h.
+       * python/py-continueevent.c (create_continue_event_object): Make
+       static.
+       * python/py-lazy-string.c (stpy_get_type): Make static.
+       * python/py-newobjfileevent.c (create_new_objfile_event_object):
+       Make static.
+       * python/py-utils.c (unicode_to_target_python_string): Make
+       static.
+       * python/py-value.c: Include python.h.
+
 2012-03-01  Pedro Alves  <palves@redhat.com>
 
        * inferior.c (delete_threads_of_inferior): Delete.
index 195ed2b7d6ab94adccfdd74abb9efb6860a5f2c9..c13fb95c55d61d50b4f6a37e7597f7d517a5c63d 100644 (file)
@@ -21,6 +21,7 @@
 #include "value.h"
 #include "exceptions.h"
 #include "python-internal.h"
+#include "python.h"
 #include "charset.h"
 #include "breakpoint.h"
 #include "gdbcmd.h"
index 4582fb5ab9a36c0e38c870e340f65e6f31158fc4..2a1524e4c476d1b146171cf0443b1dc85d2a1464 100644 (file)
@@ -21,7 +21,7 @@
 
 static PyTypeObject continue_event_object_type;
 
-PyObject *
+static PyObject *
 create_continue_event_object (void)
 {
   return create_thread_event_object (&continue_event_object_type);
index 11048b3e50e66c70bafce33cd4a8501e6691a38e..3c908296f2811928d5abad4409b678c74e1f2084 100644 (file)
@@ -84,7 +84,7 @@ stpy_get_length (PyObject *self, void *closure)
   return PyLong_FromLong (self_string->length);
 }
 
-PyObject *
+static PyObject *
 stpy_get_type (PyObject *self, void *closure)
 {
   lazy_string_object *str_obj = (lazy_string_object *) self;
index 1e26b044b4201d236d92c155d73a45f598dab5ce..d014be60961abf4f6f3f3a75e2be2174ae17f518 100644 (file)
@@ -21,7 +21,7 @@
 
 static PyTypeObject new_objfile_event_object_type;
 
-PyObject *
+static PyObject *
 create_new_objfile_event_object (struct objfile *objfile)
 {
   PyObject *objfile_event;
index bf50e37d5b052000b2b672c19c8d06cb6b964182..d5d0e431b55c545e9ef2c4a4394f685366c61b98 100644 (file)
@@ -139,7 +139,7 @@ unicode_to_target_string (PyObject *unicode_str)
    object converted to the target's charset.  If an error occurs
    during the conversion, NULL will be returned and a python exception
    will be set.  */
-PyObject *
+static PyObject *
 unicode_to_target_python_string (PyObject *unicode_str)
 {
   return unicode_to_encoded_python_string (unicode_str,
index 760360e3c342fd3fc787916aa8aa8e8872005df2..44443e00662bb45b17de67a5d26bac203ca570b3 100644 (file)
@@ -28,6 +28,7 @@
 #include "infcall.h"
 #include "expression.h"
 #include "cp-abi.h"
+#include "python.h"
 
 #ifdef HAVE_PYTHON