From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23200 invoked by alias); 14 Jan 2003 23:01:12 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 23193 invoked from network); 14 Jan 2003 23:01:11 -0000 Received: from unknown (HELO gateway.sf.frob.com) (64.163.212.240) by 209.249.29.67 with SMTP; 14 Jan 2003 23:01:11 -0000 Received: from magilla.sf.frob.com (magilla.sf.frob.com [198.49.250.228]) by gateway.sf.frob.com (Postfix) with ESMTP id 281E536DE; Tue, 14 Jan 2003 15:00:59 -0800 (PST) Received: (from roland@localhost) by magilla.sf.frob.com (8.11.6/8.11.6) id h0EN0wi09118; Tue, 14 Jan 2003 15:00:58 -0800 Date: Tue, 14 Jan 2003 23:01:00 -0000 Message-Id: <200301142300.h0EN0wi09118@magilla.sf.frob.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Daniel Jacobowitz Cc: Michael Snyder , Ulrich Drepper , gdb@sources.redhat.com Subject: Re: libthread_db thread handles In-Reply-To: Daniel Jacobowitz's message of Tuesday, 14 January 2003 17:46:41 -0500 <20030114224641.GA18618@nevyn.them.org> Emacs: if SIGINT doesn't work, try a tranquilizer. X-SW-Source: 2003-01/txt/msg00242.txt.bz2 > td_thrhandle_t is opaque; it is documented as opaque in . > I don't want to look at th_unique. Can I rely on the fact that the contents > of a td_thrhandle_t are stable and can be re-used if I save the > td_thrhandle_t? For the life of the td_thragent_t, yes. That is, until there is a TD_DEATH event for the thread. Once you resume the LWP that stopped to report the TD_DEATH event, any td_thrandle_t associated with the dying thread is invalid (as you would expect). Since the closest thing to a spec for thread_db is the Solaris documentation, and that's vague, we can't quite say that this is "part of the spec". But in extant GNU/Linux implementations it is certainly true, and I can't envision an implementation in which it would not be true.