From owner-freebsd-current Wed May 12 1:28:12 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 B368215331 for ; Wed, 12 May 1999 01:28:08 -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 JAA90368; Wed, 12 May 1999 09:28:00 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Wed, 12 May 1999 09:28:00 +0100 (BST) From: Doug Rabson To: John Birrell Cc: current@freebsd.org Subject: Re: Debugging uthreads In-Reply-To: <199905120827.SAA25753@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 didn't want to use the address since it might cause confusion if a > > thread was freed and then the memory was re-allocated to create a new > > thread. > > Good reason. > > > I thought about the versioning but I don't think it will be a problem in > > practice since both uthread and gdb will generally be built by a single > > 'make world'. > > But libc_r isn't linked into anything during a 'make world'. It is only > linked to 3rd party applications. So, although libc_r and gdb are in > sync at the end of a 'make world', any statically linked applications > will be out-of-sync (if an internal change has been made to libc_r). > I'm not sure there is an easy solution to this. Other gdb thread debugging systems tend to export a set of variables from the thread library which describe the important offsets in the thread structure e.g. _debug_pthread_status_offset, _debug_pthread_foo_offset etc. If you think there will be a real problem, I could do this I guess. -- 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