[gdb/Python] Eliminate find_inferior_object
authorPedro Alves <palves@redhat.com>
Mon, 17 Sep 2018 18:46:40 +0000 (19:46 +0100)
committerPedro Alves <palves@redhat.com>
Mon, 17 Sep 2018 18:46:40 +0000 (19:46 +0100)
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
gdb/python/py-inferior.c

index 419bffd37213bb67970eb499bb48ce98141631f9..ba2730272dbcde46cb1e7c3bf4e94975496d47ec 100644 (file)
@@ -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
index 145f53d14afd537e937f53ec36780e44c913a268..5bba676478c6086de4305729a0cbd0f3f947c281 100644 (file)
@@ -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)
 {
This page took 0.044982 seconds and 4 git commands to generate.