From patchwork Mon May 23 12:33:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Benson X-Patchwork-Id: 12458 Received: (qmail 112591 invoked by alias); 23 May 2016 12:34:04 -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 112578 invoked by uid 89); 23 May 2016 12:34:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=chk, CHK 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; Mon, 23 May 2016 12:34:02 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B3A1D80E42 for ; Mon, 23 May 2016 12:34:01 +0000 (UTC) Received: from blade.nx (ovpn-116-115.ams2.redhat.com [10.36.116.115]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u4NCY0lg023278 for ; Mon, 23 May 2016 08:34:01 -0400 Received: from blade.nx (localhost [127.0.0.1]) by blade.nx (Postfix) with ESMTP id 8AFBD263F42 for ; Mon, 23 May 2016 13:33:59 +0100 (BST) From: Gary Benson To: gdb-patches@sourceware.org Subject: [OB PATCH] Remove unused libthread_db td_thr_validate reference Date: Mon, 23 May 2016 13:33:59 +0100 Message-Id: <1464006839-8106-1-git-send-email-gbenson@redhat.com> X-IsSubscribed: yes Native GDB looks up the function td_thr_validate from libthread_db.so on Linux, but the value is never used. This commit removes this dead code. gdb/ChangeLog: * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef. * linux-thread-db.c (struct thread_db_info) : Remove field. (try_thread_db_load_1): Remove td_thr_validate initialization. --- gdb/ChangeLog | 7 +++++++ gdb/linux-thread-db.c | 2 -- gdb/nat/gdb_thread_db.h | 1 - 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index 844b05c..284e331 100644 --- a/gdb/linux-thread-db.c +++ b/gdb/linux-thread-db.c @@ -158,7 +158,6 @@ struct thread_db_info td_ta_new_ftype *td_ta_new_p; td_ta_map_lwp2thr_ftype *td_ta_map_lwp2thr_p; td_ta_thr_iter_ftype *td_ta_thr_iter_p; - td_thr_validate_ftype *td_thr_validate_p; td_thr_get_info_ftype *td_thr_get_info_p; td_thr_tls_get_addr_ftype *td_thr_tls_get_addr_p; td_thr_tlsbase_ftype *td_thr_tlsbase_p; @@ -561,7 +560,6 @@ try_thread_db_load_1 (struct thread_db_info *info) /* These are essential. */ CHK (TDB_VERBOSE_DLSYM (info, td_ta_map_lwp2thr)); - CHK (TDB_VERBOSE_DLSYM (info, td_thr_validate)); CHK (TDB_VERBOSE_DLSYM (info, td_thr_get_info)); /* These are not essential. */ diff --git a/gdb/nat/gdb_thread_db.h b/gdb/nat/gdb_thread_db.h index 30f7400..99407b0 100644 --- a/gdb/nat/gdb_thread_db.h +++ b/gdb/nat/gdb_thread_db.h @@ -57,7 +57,6 @@ typedef td_err_e (td_ta_clear_event_ftype) (const td_thragent_t *ta, typedef td_err_e (td_ta_event_getmsg_ftype) (const td_thragent_t *ta, td_event_msg_t *msg); -typedef td_err_e (td_thr_validate_ftype) (const td_thrhandle_t *th); typedef td_err_e (td_thr_get_info_ftype) (const td_thrhandle_t *th, td_thrinfo_t *infop); typedef td_err_e (td_thr_event_enable_ftype) (const td_thrhandle_t *th,