From owner-freebsd-current Wed May 12 7:18:17 1999 Delivered-To: freebsd-current@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id 2DC3D14DCA for ; Wed, 12 May 1999 07:18:11 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from localhost (dfr@localhost) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id PAA00584; Wed, 12 May 1999 15:17:59 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Wed, 12 May 1999 15:17:59 +0100 (BST) From: Doug Rabson To: John Birrell Cc: current@freebsd.org Subject: Re: Debugging uthreads In-Reply-To: <199905120934.TAA26050@cimlogic.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 12 May 1999, John Birrell wrote: > Doug Rabson wrote: > > I think the only state which I need to know about is PS_DEAD. If we marked > > dead threads in the public struct it might simplify things. > > You use PS_RUNNING too. We could just tie down those two as PS_DEAD = 0 > and PS_RUNNING = 1. Ah. I thought I had changed that. The use of PS_RUNNING in store_registers is bogus, it should be checking against _thread_run. The whole function get_thread_info is pretty bogus too and it is never called by gdb as far as I can tell. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message