From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32696 invoked by alias); 11 Jul 2008 13:42:21 -0000 Received: (qmail 32678 invoked by uid 22791); 11 Jul 2008 13:42:21 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 11 Jul 2008 13:42:01 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 2FBC998415 for ; Fri, 11 Jul 2008 13:42:00 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 154F398376 for ; Fri, 11 Jul 2008 13:42:00 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KHIsp-00014T-DZ for gdb-patches@sourceware.org; Fri, 11 Jul 2008 09:41:59 -0400 Date: Fri, 11 Jul 2008 13:42:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Subject: Re: [MI non-stop 01/11] Report thread state in -thread-info output. Message-ID: <20080711134159.GC2651@caradoc.them.org> Mail-Followup-To: gdb-patches@sourceware.org References: <200806282034.58776.vladimir@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200806282034.58776.vladimir@codesourcery.com> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes 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 X-SW-Source: 2008-07/txt/msg00196.txt.bz2 On Sat, Jun 28, 2008 at 08:34:58PM +0400, Vladimir Prus wrote: > + if (tp->state_ == THREAD_EXITED) > + state = "exited"; /* This field is internal to thread.c. Never access it directly, use is_running instead. */ int state_; Aren't there accessors you can use here? -- Daniel Jacobowitz CodeSourcery