From patchwork Thu May 7 14:44:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Benson X-Patchwork-Id: 6607 Received: (qmail 3309 invoked by alias); 7 May 2015 14:44:21 -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 3290 invoked by uid 89); 7 May 2015 14:44:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 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 (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 07 May 2015 14:44:19 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t47EiHE6018762 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 7 May 2015 10:44:18 -0400 Received: from blade.nx (ovpn-116-40.ams2.redhat.com [10.36.116.40]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t47EiGUi004621 for ; Thu, 7 May 2015 10:44:17 -0400 Received: from blade.nx (localhost [127.0.0.1]) by blade.nx (Postfix) with ESMTP id 08D76263D6A for ; Thu, 7 May 2015 15:44:16 +0100 (BST) From: Gary Benson To: gdb-patches@sourceware.org Subject: [OB][PATCH] Remove unused td_ta_map_id2thr code Date: Thu, 7 May 2015 15:44:15 +0100 Message-Id: <1431009855-7609-1-git-send-email-gbenson@redhat.com> In-Reply-To: <1431007366-25165-1-git-send-email-gbenson@redhat.com> References: <1431007366-25165-1-git-send-email-gbenson@redhat.com> X-IsSubscribed: yes I found another... linux-thread-db.c initializes td_ta_map_id2thr but never uses it. This commit removes this dead code. Pushed as obvious. gdb/ChangeLog: * linux-thread-db.c (struct thread_db_info) : Remove field. (try_thread_db_load_1): Remove initialization for the above. --- gdb/ChangeLog | 6 ++++++ gdb/linux-thread-db.c | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index 977476e..d6387d5 100644 --- a/gdb/linux-thread-db.c +++ b/gdb/linux-thread-db.c @@ -178,8 +178,6 @@ struct thread_db_info td_err_e (*td_ta_new_p) (struct ps_prochandle * ps, td_thragent_t **ta); - td_err_e (*td_ta_map_id2thr_p) (const td_thragent_t *ta, thread_t pt, - td_thrhandle_t *__th); td_err_e (*td_ta_map_lwp2thr_p) (const td_thragent_t *ta, lwpid_t lwpid, td_thrhandle_t *th); td_err_e (*td_ta_thr_iter_p) (const td_thragent_t *ta, @@ -722,10 +720,6 @@ try_thread_db_load_1 (struct thread_db_info *info) return 0; } - info->td_ta_map_id2thr_p = verbose_dlsym (info->handle, "td_ta_map_id2thr"); - if (info->td_ta_map_id2thr_p == NULL) - return 0; - info->td_ta_map_lwp2thr_p = verbose_dlsym (info->handle, "td_ta_map_lwp2thr"); if (info->td_ta_map_lwp2thr_p == NULL)