From patchwork Mon Sep 17 18:48:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Alves X-Patchwork-Id: 29424 Received: (qmail 86034 invoked by alias); 17 Sep 2018 18:48:47 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 57297 invoked by uid 89); 17 Sep 2018 18:48:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 17 Sep 2018 18:48:27 +0000 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C96B880F79 for ; Mon, 17 Sep 2018 18:48:10 +0000 (UTC) Received: from localhost.localdomain (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 51A6C1061A2B for ; Mon, 17 Sep 2018 18:48:10 +0000 (UTC) From: Pedro Alves To: gdb-patches@sourceware.org Subject: [ob/pushed] [gdb/Python] Eliminate find_inferior_object Date: Mon, 17 Sep 2018 19:48:08 +0100 Message-Id: <20180917184808.29832-1-palves@redhat.com> 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 * 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 + + * python/py-inferior.c (find_inferior_object): Delete. + 2018-09-17 Simon Marchi * 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) {