From patchwork Thu May 7 14:02:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Benson X-Patchwork-Id: 6606 Received: (qmail 2247 invoked by alias); 7 May 2015 14:02:56 -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 2230 invoked by uid 89); 7 May 2015 14:02:55 -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:02:50 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t47E2mqu006596 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 7 May 2015 10:02:49 -0400 Received: from blade.nx (ovpn-116-40.ams2.redhat.com [10.36.116.40]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t47E2lxZ023967 for ; Thu, 7 May 2015 10:02:48 -0400 Received: from blade.nx (localhost [127.0.0.1]) by blade.nx (Postfix) with ESMTP id 28E25263CBD for ; Thu, 7 May 2015 15:02:47 +0100 (BST) From: Gary Benson To: gdb-patches@sourceware.org Subject: [OB][PATCH] Remove unused td_thr_validate code Date: Thu, 7 May 2015 15:02:46 +0100 Message-Id: <1431007366-25165-1-git-send-email-gbenson@redhat.com> X-IsSubscribed: yes linux-thread-db.c initializes td_thr_validate 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 | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index 886d8ac..977476e 100644 --- a/gdb/linux-thread-db.c +++ b/gdb/linux-thread-db.c @@ -196,7 +196,6 @@ struct thread_db_info td_err_e (*td_ta_event_getmsg_p) (const td_thragent_t *ta, td_event_msg_t *msg); - td_err_e (*td_thr_validate_p) (const td_thrhandle_t *th); td_err_e (*td_thr_get_info_p) (const td_thrhandle_t *th, td_thrinfo_t *infop); td_err_e (*td_thr_event_enable_p) (const td_thrhandle_t *th, @@ -736,10 +735,6 @@ try_thread_db_load_1 (struct thread_db_info *info) if (info->td_ta_thr_iter_p == NULL) return 0; - info->td_thr_validate_p = verbose_dlsym (info->handle, "td_thr_validate"); - if (info->td_thr_validate_p == NULL) - return 0; - info->td_thr_get_info_p = verbose_dlsym (info->handle, "td_thr_get_info"); if (info->td_thr_get_info_p == NULL) return 0;