Make gdbpy_parameter static
authorTom Tromey <tom@tromey.com>
Thu, 9 Jun 2016 21:07:55 +0000 (15:07 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 24 Jun 2016 02:44:48 +0000 (20:44 -0600)
While working on the next patch in this series, I noticed that
gdbpy_parameter did not need to be exported.  This makes it "static".

2016-06-23  Tom Tromey  <tom@tromey.com>

* python/python.c (gdbpy_parameter): Now static.
* python/python-internal.h (gdbpy_parameter): Don't declare.

gdb/ChangeLog
gdb/python/python-internal.h
gdb/python/python.c

index 74f1c7e..72e426e 100644 (file)
@@ -1,5 +1,10 @@
 2016-06-23  Tom Tromey  <tom@tromey.com>
 
+       * python/python.c (gdbpy_parameter): Now static.
+       * python/python-internal.h (gdbpy_parameter): Don't declare.
+
+2016-06-23  Tom Tromey  <tom@tromey.com>
+
        PR gdb/16483:
        * python/lib/gdb/command/frame_filters.py
        (InfoFrameFilter.list_frame_filters): Rename to print_list.  Print
index 6a2619c..7eb9aa4 100644 (file)
@@ -375,7 +375,6 @@ PyObject *gdbpy_create_ptid_object (ptid_t ptid);
 PyObject *gdbpy_selected_thread (PyObject *self, PyObject *args);
 PyObject *gdbpy_selected_inferior (PyObject *self, PyObject *args);
 PyObject *gdbpy_string_to_argv (PyObject *self, PyObject *args);
-PyObject *gdbpy_parameter (PyObject *self, PyObject *args);
 PyObject *gdbpy_parameter_value (enum var_types type, void *var);
 char *gdbpy_parse_command_name (const char *name,
                                struct cmd_list_element ***base_list,
index c177efe..3a272a9 100644 (file)
@@ -554,7 +554,7 @@ gdbpy_parameter_value (enum var_types type, void *var)
 /* A Python function which returns a gdb parameter's value as a Python
    value.  */
 
-PyObject *
+static PyObject *
 gdbpy_parameter (PyObject *self, PyObject *args)
 {
   struct gdb_exception except = exception_none;