From: Tom Tromey Date: Thu, 13 Sep 2018 22:23:52 +0000 (-0600) Subject: Make infpy_thread_from_thread_handle static X-Git-Tag: users/ARM/embedded-binutils-master-2018q4~775 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7d2215128b84d9dec4a264021427343d895fdc6d;p=thirdparty%2Fbinutils-gdb.git Make infpy_thread_from_thread_handle static I noticed that infpy_thread_from_thread_handle is not static, but should be. This patch changes it. gdb/ChangeLog 2018-09-13 Tom Tromey * python/py-inferior.c (infpy_thread_from_thread_handle): Now static. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f110b6484fb..931842bf9e3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-09-13 Tom Tromey + + * python/py-inferior.c (infpy_thread_from_thread_handle): Now + static. + 2018-09-13 Tom Tromey * exec.c (try_open_exec_file): Use std::string. diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c index 727a8d2f306..6db3df412eb 100644 --- a/gdb/python/py-inferior.c +++ b/gdb/python/py-inferior.c @@ -831,7 +831,7 @@ infpy_is_valid (PyObject *self, PyObject *args) /* Implementation of gdb.Inferior.thread_from_thread_handle (self, handle) -> gdb.InferiorThread. */ -PyObject * +static PyObject * infpy_thread_from_thread_handle (PyObject *self, PyObject *args, PyObject *kw) { PyObject *handle_obj, *result;