From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31013 invoked by alias); 25 Oct 2014 06:14:08 -0000 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 Received: (qmail 30993 invoked by uid 89); 25 Oct 2014 06:14:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.7 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sat, 25 Oct 2014 06:14:07 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s9P6E5H5003069 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 25 Oct 2014 02:14:05 -0400 Received: from host2.jankratochvil.net (ovpn-116-79.ams2.redhat.com [10.36.116.79]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s9P6E14e003313 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Sat, 25 Oct 2014 02:14:03 -0400 Date: Sat, 25 Oct 2014 06:14:00 -0000 From: Jan Kratochvil To: Rich Felker Cc: "Carlos O'Donell" , libc-alpha@sourceware.org, gdb-patches@sourceware.org Subject: Re: [libc patch] __tls_get_addr with link_map * instead of modid Message-ID: <20141025061400.GA32108@host2.jankratochvil.net> References: <20141018201540.GA26252@host2.jankratochvil.net> <5449B78E.1060407@redhat.com> <20141024093834.GA24090@host2.jankratochvil.net> <544A60A5.4020701@redhat.com> <20141024144014.GA2193@host2.jankratochvil.net> <20141025055516.GJ22465@brightrain.aerifal.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141025055516.GJ22465@brightrain.aerifal.cx> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00692.txt.bz2 On Sat, 25 Oct 2014 07:55:16 +0200, Rich Felker wrote: > On Fri, Oct 24, 2014 at 04:40:14PM +0200, Jan Kratochvil wrote: > > I forgot about this possibility - that libthread_db would provide just the > > module ID (and not some per-thread address). > > Why not just use dl_iterate_phdr to get the module id? I do not see where to find l_tls_modid in the returned data structures. dl_iterate_phdr is in libc.so.6 (and not libdl.so.2) so that would be OK. Thanks, Jan