aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-inferior.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2018-09-17 19:46:40 +0100
committerPedro Alves <palves@redhat.com>2018-09-17 19:46:40 +0100
commitd35da542a7a7f62b909cef636f69c9da928e7d9b (patch)
tree01f118ad1c38e7922d4490e4364439670aa01f8e /gdb/python/py-inferior.c
parent4e2b18982ade10897e62590896a1dec496269877 (diff)
downloadgdb-d35da542a7a7f62b909cef636f69c9da928e7d9b.zip
gdb-d35da542a7a7f62b909cef636f69c9da928e7d9b.tar.gz
gdb-d35da542a7a7f62b909cef636f69c9da928e7d9b.tar.bz2
[gdb/Python] Eliminate find_inferior_object
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.
Diffstat (limited to 'gdb/python/py-inferior.c')
-rw-r--r--gdb/python/py-inferior.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c
index 145f53d..5bba676 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)
{