* [ob/pushed] [gdb/Python] Eliminate find_inferior_object
@ 2018-09-17 18:48 Pedro Alves
0 siblings, 0 replies; only message in thread
From: Pedro Alves @ 2018-09-17 18:48 UTC (permalink / raw)
To: gdb-patches
Commit 00431a78b28f ("Use thread_info and inferior pointers more
throughout") removed the declaration of find_inferior_object, but
missed removing the definition.
gdb/ChangeLog:
2018-09-17 Pedro Alves <palves@redhat.com>
* python/py-inferior.c (find_inferior_object): Delete.
---
gdb/ChangeLog | 4 ++++
gdb/python/py-inferior.c | 14 --------------
2 files changed, 4 insertions(+), 14 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 419bffd372..ba2730272d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2018-09-17 Pedro Alves <palves@redhat.com>
+
+ * python/py-inferior.c (find_inferior_object): Delete.
+
2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
* compile/compile-cplus-types.c
diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c
index 145f53d14a..5bba676478 100644
--- a/gdb/python/py-inferior.c
+++ b/gdb/python/py-inferior.c
@@ -292,20 +292,6 @@ python_inferior_deleted (struct inferior *inf)
gdbpy_print_stack ();
}
-/* Finds the Python Inferior object for the given PID. Returns a
- reference, or NULL if PID does not match any inferior object. */
-
-PyObject *
-find_inferior_object (int pid)
-{
- struct inferior *inf = find_inferior_pid (pid);
-
- if (inf)
- return (PyObject *) inferior_to_inferior_object (inf);
-
- return NULL;
-}
-
gdbpy_ref<>
thread_to_thread_object (thread_info *thr)
{
--
2.14.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-09-17 18:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-17 18:48 [ob/pushed] [gdb/Python] Eliminate find_inferior_object Pedro Alves
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).