This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Make infpy_thread_from_thread_handle static
- From: Tom Tromey <tromey at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 13 Sep 2018 22:27:57 -0000
- Subject: [binutils-gdb] Make infpy_thread_from_thread_handle static
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7d2215128b84d9dec4a264021427343d895fdc6d
commit 7d2215128b84d9dec4a264021427343d895fdc6d
Author: Tom Tromey <tom@tromey.com>
Date: Thu Sep 13 16:23:52 2018 -0600
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 <tom@tromey.com>
* python/py-inferior.c (infpy_thread_from_thread_handle): Now
static.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/python/py-inferior.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f110b64..931842b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2018-09-13 Tom Tromey <tom@tromey.com>
+ * python/py-inferior.c (infpy_thread_from_thread_handle): Now
+ static.
+
+2018-09-13 Tom Tromey <tom@tromey.com>
+
* exec.c (try_open_exec_file): Use std::string.
2018-09-13 Tom Tromey <tom@tromey.com>
diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c
index 727a8d2..6db3df4 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;