From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13745 invoked by alias); 14 Jan 2003 23:47:06 -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 13720 invoked from network); 14 Jan 2003 23:47:03 -0000 Received: from unknown (HELO gateway.sf.frob.com) (64.163.212.240) by 209.249.29.67 with SMTP; 14 Jan 2003 23:47:03 -0000 Received: from magilla.sf.frob.com (magilla.sf.frob.com [198.49.250.228]) by gateway.sf.frob.com (Postfix) with ESMTP id C815336DE; Tue, 14 Jan 2003 15:46:51 -0800 (PST) Received: (from roland@localhost) by magilla.sf.frob.com (8.11.6/8.11.6) id h0ENkp512697; Tue, 14 Jan 2003 15:46:51 -0800 Date: Tue, 14 Jan 2003 23:47:00 -0000 Message-Id: <200301142346.h0ENkp512697@magilla.sf.frob.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Ulrich Drepper Cc: Daniel Jacobowitz , Michael Snyder , gdb@sources.redhat.com Subject: Re: libthread_db thread handles In-Reply-To: Ulrich Drepper's message of Tuesday, 14 January 2003 15:40:54 -0800 <3E24A006.4070703@redhat.com> X-Zippy-Says: Did you GAIN WEIGHT in th' past 5 MINUTES or am I just DREAMING of two BROCCOLI FLORETS lying in an empty GAS TANK? X-SW-Source: 2003-01/txt/msg00249.txt.bz2 > If you have the pthread_t value computing the td_thrhandle_t is an > operation which can be performed entirely without the looking at the > inferior. At least in the new implementation. Just call > td_ta_map_id2thr(). This shouldn't add any measurable overhead. > > I would prefer you caching the pthread_t value very much over caching > any opaque data structure. If this means adding a function > td_ta_map_thr2id() I'd have no problems with it. But not even this > should be necessary since for both events, TD_CREATE and TD_DEATH, the > eventdata is the pthread_t value. And this should be a documented > interface. One can already use td_thr_get_info and ti_tid is the pthread_t value (that can be given to td_ta_map_id2thr).