From: Tom Tromey Date: Thu, 9 Jun 2016 21:07:55 +0000 (-0600) Subject: Make gdbpy_parameter static X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0c72ed4ca21e7a9f78f19179584f3886bf463689;p=binutils-gdb.git Make gdbpy_parameter static 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 * python/python.c (gdbpy_parameter): Now static. * python/python-internal.h (gdbpy_parameter): Don't declare. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 74f1c7e6757..72e426e09de 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2016-06-23 Tom Tromey + + * python/python.c (gdbpy_parameter): Now static. + * python/python-internal.h (gdbpy_parameter): Don't declare. + 2016-06-23 Tom Tromey PR gdb/16483: diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index 6a2619cd716..7eb9aa40113 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -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, diff --git a/gdb/python/python.c b/gdb/python/python.c index c177efe1616..3a272a9025c 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -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;