From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22793 invoked by alias); 16 Apr 2013 18:31:29 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 22768 invoked by uid 89); 16 Apr 2013 18:31:29 -0000 X-Spam-SWARE-Status: No, score=-8.0 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 16 Apr 2013 18:31:28 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r3GIVRMg029730 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 16 Apr 2013 14:31:27 -0400 Received: from brno.lan (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r3GIVPCJ005655 for ; Tue, 16 Apr 2013 14:31:26 -0400 Subject: [PATCH 6/6] Only define 'struct lwp_info'::thread_known if using libthread-db. To: gdb-patches@sourceware.org From: Pedro Alves Date: Wed, 17 Apr 2013 02:54:00 -0000 Message-ID: <20130416183125.540.35758.stgit@brno.lan> In-Reply-To: <20130416183043.540.32214.stgit@brno.lan> References: <20130416183043.540.32214.stgit@brno.lan> User-Agent: StGit/0.16 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-SW-Source: 2013-04/txt/msg00505.txt.bz2 A small cleanup. 'struct lwp_info'::thread_known is only useful for thread-db.c. gdbserver/ 2013-04-16 Pedro Alves * linux-low.h (struct lwp_info) : Move under the USE_THREAD_DB #ifdef. --- gdb/gdbserver/linux-low.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/gdbserver/linux-low.h b/gdb/gdbserver/linux-low.h index 834dd91..205d803 100644 --- a/gdb/gdbserver/linux-low.h +++ b/gdb/gdbserver/linux-low.h @@ -267,8 +267,8 @@ struct lwp_info stepping over later when it is resumed. */ int need_step_over; - int thread_known; #ifdef USE_THREAD_DB + int thread_known; /* The thread handle, used for e.g. TLS access. Only valid if THREAD_KNOWN is set. */ td_thrhandle_t th;