mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +08:00
[gdb/Python] Eliminate find_inferior_object
Commit 00431a78b2
("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.
This commit is contained in:
parent
4e2b18982a
commit
d35da542a7
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user